2011-12-19 Chung-Lin Tang <cltang@codesourcery.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 0b31af428b9945a464cada6a5cb68223760b1a90..b651abec4e8597d9def6714152118fa929171b63 100644 (file)
@@ -1,3 +1,905 @@
+2011-12-19  Chung-Lin Tang  <cltang@codesourcery.com>
+
+       * reloc.c (BFD_RELOC_MIPS16_TLS_GD,BFD_RELOC_MIPS16_TLS_LDM,
+       BFD_RELOC_MIPS16_TLS_DTPREL_HI16,BFD_RELOC_MIPS16_TLS_DTPREL_LO16,
+       BFD_RELOC_MIPS16_TLS_GOTTPREL,BFD_RELOC_MIPS16_TLS_TPREL_HI16,
+       BFD_RELOC_MIPS16_TLS_TPREL_LO16): New relocations for MIPS16 TLS.
+       * bfd-in2.h (bfd_reloc_code_real): Regenerate.
+       * libbfd.h (bfd_reloc_code_real_names): Regenerate.
+       * elf32-mips.c (elf_mips16_howto_table_rel): Add R_MIPS16_TLS_*
+       entries.
+       (mips16_reloc_map): Add BFD_RELOC_MIPS16_TLS_* to R_MIPS16_TLS_*
+       mappings.
+       * elfn32-mips.c (elf_mips16_howto_table_rel,
+       elf_mips16_howto_table_rela): Add R_MIPS16_TLS_* entries.
+       (mips16_reloc_map): Add BFD_RELOC_MIPS16_TLS_* to R_MIPS16_TLS_*
+       mappings.
+       * elf64-mips.c (mips16_elf64_howto_table_rel,
+       mips16_elf64_howto_table_rela): Add R_MIPS16_TLS_* entries.
+       (mips16_reloc_map): Add BFD_RELOC_MIPS16_TLS_* to R_MIPS16_TLS_*
+       mappings.
+       * elfxx-mips.c (TLS_RELOC_P,mips16_reloc_p,
+       _bfd_mips_elf_check_relocs): Add cases for R_MIPS16_TLS_* relocations.
+       (tls_gd_reloc_p): Add R_MIPS16_TLS_GD case.
+       (tls_ldm_reloc_p): Add R_MIPS16_TLS_LDM case.
+       (tls_gottprel_reloc_p): Add R_MIPS16_TLS_GOTTPREL case.
+       (mips_elf_calculate_relocation): Add cases for R_MIPS16_TLS_*,
+       R_MIPS_TLS_DTPREL32/64, and R_MIPS_TLS_TPREL32/64 relocations.
+
+2011-12-19  Chung-Lin Tang  <cltang@codesourcery.com>
+           Catherine Moore  <clm@codesourcery.com>
+           Sandra Loosemore  <sandra@codesourcery.com>
+           Richard Sandiford  <rdsandiford@googlemail.com>
+
+       * elfxx-mips.c (mips_elf_local_pic_function_p): Return true when
+       H is a MIPS16 function with a kept 32-bit stub. Update comments.
+       (mips_elf_get_la25_target): New function.
+       (mips_elf_add_la25_intro): Change to use mips_elf_get_la25_target().
+       (mips_elf_add_la25_stub): Move compute of use_trampoline_p down,
+       change to use mips_elf_get_la25_target().
+       (mips_elf_relocation_needs_la25_stub): Add target_is_16_bit_code_p
+       parameter, add switch case for R_MIPS16_26.
+       (mips_elf_calculate_relocation): Redirect relocation to point to the
+       LA25 stub if it exists, instead of the MIPS16 stub. Update arguments
+       of call to mips_elf_relocation_needs_la25_stub(), don't use la25 stub
+       for mips16->mips16 calls.
+       (_bfd_mips_elf_check_relocs): Update arguments of call to
+       mips_elf_relocation_needs_la25_stub().
+       (mips_elf_create_la25_stub): Change to use mips_elf_get_la25_target().
+
+2011-12-16  Shinichiro Hamaji  <shinichiro.hamaji@gmail.com>
+
+       * mach-o-i386.c (TARGET_PRIORITY): Define as 0 (top priority)
+       * mach-o-target.c (TARGET_NAME): Use TARGET_PRIORITY
+       * mach-o-x86-64.c (TARGET_PRIORITY): Define as 0 (top priority)
+       * mach-o.c (bfd_mach_o_header_p): Remove special handling for
+       mach-o-i386.
+       (TARGET_PRIORITY) Set 1 for mach-o-be and mach-o-le, and set 0 for
+       mach-o-fat.
+
+2011-12-15  Kevin Buettner  <kevinb@redhat.com>
+
+       * elf32-am33lin.c (elf32_am33lin_grok_prstatus): Add case
+       to correspond to a smaller ELF_NGREG defined by the kernel.
+
+2011-12-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf64-x86-64.c (ELF32_DYNAMIC_INTERPRETER): Set to
+        "/lib/ldx32.so.1".
+
+2011-12-15  Iain Sandoe  <iains@gcc.gnu.org>
+
+       * mach-o.c (bfd_mach_o_mkobject_init): Initialize dyn_reloc_cache.
+       (bfd_mach_o_close_and_cleanup): Only cleanup Mach-O private data
+       for object files.
+
+2011-12-15  Shinichiro Hamaji  <shinichiro.hamaji@gmail.com>
+
+       * mach-o.c (bfd_mach_o_canonicalize_reloc): Update relocation
+       table only when there isn't the cahce.
+       (bfd_mach_o_get_dynamic_reloc_upper_bound): Need one more space
+       for a pointer for the watchdog.
+       (bfd_mach_o_canonicalize_dynamic_reloc): Utilize cache like
+       bfd_mach_o_canonicalize_reloc.
+       (bfd_mach_o_close_and_cleanup): Call bfd_mach_o_free_cached_info.
+       (bfd_mach_o_free_cached_info): Free up cache data.
+       * mach-o.h (reloc_cache): A place to store cache of dynamic relocs.
+       (bfd_mach_o_free_cached_info): Add declaration.
+
+2011-12-15  Iain Sandoe  <iains@gcc.gnu.org>
+
+       * mach-o-target.c (bfd_mach_o_bfd_set_private_flags): Use
+       bfd_mach_o_bfd_set_private_flags.
+       * mach-o.c (bfd_mach_o_bfd_set_private_flags): New.
+       * mach-o.h (bfd_mach_o_bfd_set_private_flags): Declare.
+
+2011-12-14  Nick Clifton  <nickc@redhat.com>
+
+       PR ld/12451
+       * elfcode.h (elf_checksum_contents): Read in the section's
+       contents if they are not already available, and the section
+       actually has some contents.
+
+       * compress.c (bfd_get_full_section_contents): Use zmalloc to
+       allocate the buffers so that excess bytes are guaranteed to be
+       zero.
+
+2011-12-14  Iain Sandoe  <iains@gcc.gnu.org>
+
+       * mach-o-i386.c (text_section_names_xlat): New table.
+       (data_section_names_xlat): Likewise.
+       (import_section_names_xlat): Likewise.
+       (mach_o_i386_segsec_names_xlat): Likewise.
+       (bfd_mach_o_tgt_seg_table): Use new tables.
+       * mach-o-x86-64.c (bfd_mach_o_tgt_seg_table): Set NULL.
+       * mach-o.c (mach_o_section_name_xlat, mach_o_segment_name_xlat):
+       Move to mach-o.h as   typedefs.
+       (text_section_names_xlat): Update for current GCC usage.
+       (data_section_names_xlat): Likewise.
+       (dwarf_section_names_xlat): Likewise.
+       (objc_section_names_xlat): New table.
+       (segsec_names_xlat): Add objc table.
+       (bfd_mach_o_normalize_section_name):  Replace with...
+       (bfd_mach_o_section_data_for_mach_sect): New.
+       (bfd_mach_o_section_data_for_bfd_name): New.
+       (bfd_mach_o_section_data_for_bfd_name): Update to use additional data.
+       (bfd_mach_o_convert_section_name_to_mach_o): Likewise.
+       (bfd_mach_o_bfd_copy_private_section_data): Implement.
+       (bfd_mach_o_write_symtab): Write a zero-length string as the first entry
+       for compatibility with system tools.
+       (bfd_mach_o_build_commands): Update section alignment info.
+       (bfd_mach_o_new_section_hook): Use translation table data to define
+       default section flags, type, attributes and alignment, when available.
+       (bfd_mach_o_init_section_from_mach_o): Add TODO comment.
+       (bfd_mach_o_section_type_name): Add 'symbol_stubs'.
+       (bfd_mach_o_section_attribute_name): Add 'self_modifying_code'.
+       (bfd_mach_o_get_section_type_from_name): Change "not-found" return
+       value.
+       (bfd_mach_o_tgt_seg_table): Set default NULL.
+       * mach-o.h (bfd_mach_o_segment_command):  Use define for name length.
+       (bfd_mach_o_backend_data): Move until after contents are defined.
+       (bfd_mach_o_normalize_section_name): Remove.
+       (bfd_mach_o_convert_section_name_to_bfd): Declare.
+       (mach_o_section_name_xlat): Declare.
+       (mach_o_segment_name_xlat): Declare.
+       (bfd_mach_o_section_data_for_mach_sect): Declare.
+       (bfd_mach_o_section_data_for_bfd_name): Declare.
+
+2011-12-13  Shinichiro Hamaji  <shinichiro.hamaji@gmail.com>
+
+       * dwarf2.c (bfd_dwarf2_cleanup_debug_info): Accept stash as an
+       argument like other functions to support formats other than ELF.
+       * elf-bfd.h (bfd_dwarf2_cleanup_debug_info): Move to bfd-in.h.
+       * elf.c (_bfd_elf_close_and_cleanup): Pass dwarf2_find_line_info
+       in tdata as a parameter.
+       * libbfd-in.h (bfd_dwarf2_cleanup_debug_info): Move from
+       elf-bfd.h.
+       * libbfd.h (bfd_dwarf2_cleanup_debug_info): Regenerate.
+       * mach-o-target.c (bfd_mach_o_close_and_cleanup): Remove the
+       fallback macro.
+       (bfd_mach_o_find_nearest_line): Likewise.
+       * mach-o.c (bfd_mach_o_find_nearest_line): Add the definition
+       which calls _bfd_dwarf2_find_nearest_line.
+       (bfd_mach_o_close_and_cleanup): Likewise.
+       * mach-o.h (mach_o_data_struct): Add dwarf2_find_line_info.
+       (bfd_mach_o_find_nearest_line): Add declaration.
+       (bfd_mach_o_close_and_cleanup): Add declaration.
+
+2011-12-13  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_read_symtab_symbols): Make global.  Remove
+       prototype.
+       (bfd_mach_o_section_get_entry_size): Make global.
+       (bfd_mach_o_section_get_nbr_indirect): Likewise.
+       (bfd_mach_o_read_symtab_strtab): Likewise.
+       (struct bfd_mach_o_xlat_name): Move to mach-o.h
+       (bfd_mach_o_print_flags): Move to binutils/od-macho.c
+       (bfd_mach_o_get_name_of_null, bfd_mach_o_get_name): Likewise.
+       (bfd_mach_o_cpu_name, bfd_mach_o_filetype_name): Likewise.
+       (bfd_mach_o_header_flags_name): Likewise.
+       (bfd_mach_o_load_command_name): Likewise.
+       (bfd_mach_o_print_private_header): Likewise.
+       (bfd_mach_o_print_section_map, bfd_mach_o_print_section): Likwise.
+       (bfd_mach_o_print_segment, bfd_mach_o_print_dysymtab): Likewise.
+       (bfd_mach_o_print_dyld_info): Likewise.
+       (bfd_mach_o_print_private_bfd_data): Remove.
+       (bfd_mach_o_type_name): Make global.
+       (bfd_mach_o_section_attribute_name): Likewise.
+       * mach-o.h (bfd_mach_o_xlat_name): Added.
+       (bfd_mach_o_section_get_nbr_indirect)
+       (bfd_mach_o_section_get_entry_size)
+       (bfd_mach_o_read_symtab_symbols)
+       (bfd_mach_o_read_symtab_strtab)
+       (bfd_mach_o_section_attribute_name)
+       (bfd_mach_o_section_type_name): Likewise.
+       * mach-o-target.c (bfd_mach_o_bfd_print_private_bfd_data): Define.
+
+2011-12-13  Chung-Lin Tang  <cltang@codesourcery.com>
+
+       * elfxx-mips.c (mips_elf_calculate_relocation): Correct
+       R_MIPS16_HI16/R_MIPS16_LO16 handling of two cleared lower bits,
+       update comments.
+
+2011-12-12  Iain Sandoe  <iains@gcc.gnu.org>
+
+       * mach-o.c (bfd_mach_o_read_section_32): Null-terminate sectname.
+       (bfd_mach_o_read_section_64): Likewise.
+
+2011-12-11  John Davis Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       PR binutils/13476
+       * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
+       R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations to
+       R_PARISC_DPREL21L when not doing a shared link.  Likewise convert
+       R_PARISC_TLS_GD14R, R_PARISC_TLS_LDM14R and R_PARISC_TLS_IE14R to
+       R_PARISC_DPREL14R.  Handle R_PARISC_TLS_GD21L, R_PARISC_TLS_LDM21L
+       and R_PARISC_TLS_IE21L with R_PARISC_DLTIND21L.
+
+2011-12-10  David Daney  <david.daney@cavium.com>
+
+       * elfxx-mips.c (mips_elf_link_hash_table.rld_value): Remove.
+       (mips_elf_link_hash_table.rld_symbol): New field;
+       (MIPS_ELF_RLD_MAP_SIZE): New macro.
+       (_bfd_mips_elf_add_symbol_hook): Remember __rld_obj_head symbol
+       in rld_symbol.
+       (_bfd_mips_elf_create_dynamic_sections): Remember __rld_map symbol
+       in rld_symbol.
+       (_bfd_mips_elf_size_dynamic_sections): Set correct size for .rld_map.
+       (_bfd_mips_elf_finish_dynamic_symbol): Remove .rld_map handling.
+       (_bfd_mips_elf_finish_dynamic_sections): Use rld_symbol to
+       calculate DT_MIPS_RLD_MAP value.
+       (_bfd_mips_elf_link_hash_table_create): Initialize rld_symbol,
+       quit initializing rld_value.
+
+2011-12-08  Andrew Pinski  <apinski@cavium.com>
+            Adam Nemet  <anemet@caviumnetworks.com>
+
+       * archures.c (bfd_mach_mips_octeon2): New macro
+       * bfd-in2.h: Regenerate.
+       * cpu-mips.c (I_mipsocteon2): New enum value.
+       (arch_info_struct): Add bfd_mach_mips_octeon2.
+       * elfxx-mips.c (_bfd_elf_mips_mach): Support E_MIPS_MACH_OCTEON2.
+       (mips_set_isa_flags): Add bfd_mach_mips_octeon2.
+       (mips_mach_extensions): Add bfd_mach_mips_octeon2.
+
+2011-12-07  Alan Modra  <amodra@gmail.com>
+
+       PR ld/12772
+       * elflink.c (elf_gc_sweep_symbol): Discard unmarked symbols
+       defined in shared libraries.
+
+2011-12-07  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_canonicalize_symtab): Fix indentation.
+       Adjust the condition.
+       (bfd_mach_o_read_symtab_symbol): Now returns a bfd_boolean.
+       Adjust return statements.
+       (bfd_mach_o_read_symtab_strtab): Likewise.
+       (bfd_mach_o_read_symtab_symbols): Likewise.
+       (bfd_mach_o_scan_start_address): Likewise.  Make it static.
+       (bfd_mach_o_scan): Likewise.
+       (bfd_mach_o_read_dysymtab_symbol): Remove unused function.
+       (bfd_mach_o_header_p): Adjust call.
+       (bfd_mach_o_cpu_name): Make it const.
+       (bfd_mach_o_filetype_name): Likewise.
+       (bfd_mach_o_header_flags_name): Likewise.
+       (bfd_mach_o_section_type_name): Likewise.
+       (bfd_mach_o_section_attribute_name): Likewise.
+       (bfd_mach_o_load_command_name): Likewise.
+       (bfd_mach_o_get_section_type_from_name): Add a const qualifier
+       after above change.
+       (bfd_mach_o_get_section_attribute_from_name): Likewise.
+       * mach-o.h (bfd_mach_o_read_dysymtab_symbol)
+       (bfd_mach_o_scan_start_address, bfd_mach_o_scan): Remove.
+
+2011-12-06  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * elf-bfd.h (elfcore_write_s390_last_break): Add prototype.
+       (elfcore_write_s390_system_call): Likewise.
+       * elf.c (elfcore_write_s390_last_break): New function.
+       (elfcore_write_s390_system_call): Likewise.
+       (elfcore_write_register_note): Call them.
+       (elfcore_grok_s390_last_break): New function.
+       (elfcore_grok_s390_system_call): Likewise.
+       (elfcore_grok_note): Call them.
+
+2011-12-05  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_read_symtab_symbol): Accept indirect symbols.
+
+2011-12-05  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_write_contents): Handle LC_LOAD_UPWARD_DYLIB.
+       (bfd_mach_o_read_dylib): Likewise.
+       (bfd_mach_o_read_command): Likewise.
+       (bfd_mach_o_bfd_print_private_bfd_data): Likewise.
+
+2011-12-05  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_read_command): Add the bfd in the error
+       message.
+       (bfd_mach_o_openr_next_archived_file): Use arch name as member name.
+       (bfd_mach_o_fat_extract): Ditto.
+
+2011-12-03  Alan Modra  <amodra@gmail.com>
+
+       PR ld/13468
+       * elflink.c (bfd_elf_final_link): Don't segfault when checking
+       for DT_TEXTREL and .dynamic does not exist.
+
+2011-12-03  Alan Modra  <amodra@gmail.com>
+
+       PR ld/13470
+       * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Revert substantive
+       change in 2011-07-01 commit.  Comment.
+       * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
+
+2011-12-01  Mikael Pettersson  <mikpe@it.uu.se>
+
+       * elf32-m68k.c (elf_m68k_check_relocs) <R_68K_8, R68K_16, R_68K_32>: For
+       non-SEC_ALLOC sections break before GOT and PLT accounting.
+
+2011-12-01  Hans-Peter Nilsson  <hp@axis.com>
+
+       * elf32-cris.c (cris_elf_check_relocs) <plt accounting for
+       R_CRIS_8, R_CRIS_16, and R_CRIS_32>: Move early break for
+       non-SEC_ALLOC sections before GOT and PLT accounting.
+
+2011-11-29  Andrew Pinski  <apinski@cavium.com>
+
+       * archures.c (bfd_mach_mips_octeonp): New macro.
+       * bfd-in2.h: Regenerate.
+       * bfd/cpu-mips.c (I_mipsocteonp): New enum value.
+       (arch_info_struct): Add bfd_mach_mips_octeonp.
+       * elfxx-mips.c (mips_set_isa_flags): Add bfd_mach_mips_octeonp.
+       (mips_mach_extensions): Add bfd_mach_mips_octeonp.
+
+2011-11-23  Tristan Gingold  <gingold@adacore.com>
+
+       * vms-lib.c (get_idxlen): Add comments.  Fix type in sizeof.
+       (vms_write_index): Add comments.
+
+2011-11-22  DJ Delorie  <dj@redhat.com>
+
+       * elf32-rx.c (rx_elf_object_p): Add more checks for "scanning" to
+       avoid using the special non-swapping target when not explicitly
+       requested.
+
+2011-11-22  Daniel Calcoen  <Daniel.Calcoen@cern.ch>
+
+       * elf32-rx.c (rx_elf_object_p): Correct typo: lma->vma.
+
+2011-11-22  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_print_symbol): Display COM for common
+       symbols.  Print section name in brackets.
+
+2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
+
+       * config.bfd: Add vectors for powerpc and powerpc64-freebsd.
+       * configure.in (TDEFINES): Add rules for powerpc*-freebsd.
+       * configure: Regenerate.
+       * elf32-ppc.c: Add powerpc-freebsd definitions.
+       * elf64-ppc.c: Add powerpc64-freebsd definitions.
+       * targets.c: Add bits for powerpc and powerpc64-freebsd.
+
+2011-11-17  Philipp Thomas  <philipp@thogro.org>
+
+       * elf32-arm.c (elf32_thumb_to_arm_stub): Sync message so that it
+       needs to be translated only once.
+
+2011-11-16  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * elf64-mips.c (mips_elf64_howto_table_rela): Set src_mask to
+       zero throughout.
+       (mips16_elf64_howto_table_rela): Likewise.
+       (micromips_elf64_howto_table_rela): Likewise.
+       * elfn32-mips.c (elf_mips_howto_table_rela): Likewise.
+       (elf_mips16_howto_table_rela): Likewise.
+       (elf_micromips_howto_table_rela): Likewise.
+
+2011-11-15  Alan Modra  <amodra@gmail.com>
+           Andreas Tobler  <andreast@fgznet.ch>
+
+       * elflink.c (_bfd_elf_create_got_section): Replace
+       bfd_make_section_with_flags with bfd_make_section_anyway_with_flags.
+       (_bfd_elf_link_create_dynamic_sections): Likewise.
+       * elf32-ppc.c (ppc_elf_create_glink): Likewise.
+       (ppc_elf_create_dynamic_sections): Likewise.
+
+2011-11-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
+
+       * elfxx-mips.c (mips_n64_exec_plt0_entry): Use 64-bit move.
+
+2011-11-08  Nick Clifton  <nickc@redhat.com>
+
+       * elf-m10300.c (mn10300_elf_relax_section): Fix check for an
+       immediate move into an address register.
+
+2011-11-09  Alan Modra  <amodra@gmail.com>
+
+       * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark syms in
+       executables when export_dynamic.
+
+2011-11-08  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (struct ppc64_elf_obj_tdata): Rename
+       ha_relocs_not_using_r2 to unexpected_toc_insn.
+       (ok_lo_toc_insn): New function.
+       (ppc64_elf_edit_toc): Check insn on lo toc reloc.  Emit warning.
+       (ppc64_elf_relocate_section): Don't check insn on lo toc reloc here.
+       Handle addic on lo toc reloc.
+
+2011-11-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       PR ld/13387
+       * elf32-hppa.c (elf32_hppa_hide_symbol): Make STT_GNU_IFUNC symbol
+       go through PLT.  Reset plt field with init_plt_offset.
+       (elf32_hppa_adjust_dynamic_symbol): Ensure that a PLT slot is
+       allocated for symbols referenced by a plabel.
+
+2011-11-02  DJ Delorie  <dj@redhat.com>
+
+       * elf32-rl78.c (rl78_elf_merge_private_bfd_data): Delete unused
+       variable.
+
+2011-11-02  Jan Beulich  <jbeulich@suse.com>
+
+       * coffgen.c (coff_write_alien_symbol): Make public. Add 'struct
+       internal_syment *' parameter. Extend 'dummy' to an array with two
+       elements. Set n_numaux early. Handle BSF_FILE.
+       (coff_write_symbols): Pass NULL as new third argument to
+       coff_write_alien_symbol().
+       * cofflink.c (_bfd_coff_final_link): Don't use COFF-specific
+       obj_raw_syment_count() on non-COFF input BFD. Insert local symbols
+       from non-COFF input BFDs.
+       * libcoff-in.h (coff_write_alien_symbol): Declare.
+       * libcoff.h (coff_write_alien_symbol): Re-generate.
+
+2011-11-01  DJ Delorie  <dj@redhat.com>
+
+       * Makefile.am (ALL_MACHINES): Add cpu-rl78.lo.
+       (ALL_MACHINES_CFILES): Add cpu-rl78.c.
+       (BFD32_BACKENDS): Add elf32-rl78.lo.
+       (BFD32_BACKENDS_CFILES): Add elf32-rl78.c.
+       (Makefile.in): Regenerate.
+       * archures.c (bfd_architecture): Define bfd_arch_rl78.
+       (bfd_archures_list): Add bfd_rl78_arch.
+       * config.bfd: Add rl78-*-elf.
+       * configure.in: Add bfd_elf32_rl78_vec.
+       * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_RL78_* relocations.
+       * targets.c (bfd_target_vector): Add bfd_elf32_rl78_vec.
+       * Makefile.in: Regenerate.
+       * bfd-in2.h: Regenerate.
+       * configure: Regenerate.
+       * libbfd.h: Regenerate.
+       * cpu-rl78.c: New file.
+       * elf32-rl78.c: New file.
+
+2011-10-26  Nick Clifton  <nickc@redhat.com>
+
+       PR ld/13049
+       * elf64-ppc.c (STUB_SUFFIX): Revert previous delta.
+       * elf32-hppa.c (STUB_SUFFIX): Likewise.
+
+2011-10-25  Joern Rennecke  <joern.rennecke@embecosm.com>
+
+       * Makefile.am (ALL_MACHINES): Add cpu-epiphany.lo.
+       (ALL_MACHINES_CFILES): Add cpu-epiphany.c.
+       (BFD32_BACKENDS): Add elf32-epiphany.lo.
+       (BFD32_BACKENDS_CFILES): Add elf32-epiphany.c.
+       * archures.c (bfd_arch_epiphany): Add.
+       (bfd_mach_epiphany16, bfd_mach_epiphany32): Define.
+       (bfd_epiphany_arch): Declare.
+       (bfd_archures_list): Add &bfd_epiphany_arch.
+       * config.bfd (epiphany-*-elf): New target case.
+       * configure.in (bfd_elf32_epiphany_vec): New target vector case.
+       * reloc.c (BFD_RELOC_EPIPHANY_SIMM8): New relocation.
+       (BFD_RELOC_EPIPHANY_SIMM24, BFD_RELOC_EPIPHANY_HIGH): Likewise.
+       (BFD_RELOC_EPIPHANY_LOW, BFD_RELOC_EPIPHANY_SIMM11): Likewise.
+       (BFD_RELOC_EPIPHANY_IMM11, BFD_RELOC_EPIPHANY_IMM8): Likewise.
+       * targets.c (bfd_elf32_epiphany_vec): Declare.
+       (_bfd_target_vector): Add bfd_elf32_epiphany_vec.
+       * Makefile.in: Regenerate.
+       * bfd-in2.h: Regenerate.
+       * configure: Regenerate.
+       * libbfd.h: Regenerate.
+       * po/SRC-POTFILES.in: Regenerate.
+       * po/bfd.pot: Regenerate.
+       * cpu-epiphany.c: New file.
+       * elf32-epiphany.c: New file.
+
+2011-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * elfxx-mips.c (_bfd_mips_elf_symbol_processing): Remove
+       assertions.
+
+2011-10-24  Eugeniy Meshcheryakov  <eugen@debian.org>
+
+       PR ld/13273
+       * elf32-arm.c (elf32_arm_merge_eabi_attributes): Do not warn about
+       identical TAG_PCS_config attributes.
+
+2011-10-24  Nick Clifton  <nickc@redhat.com>
+
+       * po/ja.po: Updated Japanese translation.
+
+2011-10-24  Pau Garcia i Quiles  <pgquiles@elpauer.org>
+
+       PR binutils/13292
+       * bfd-in.h: Include <sys/stat.h> rather than forward defining
+       struct stat.
+       * bfd-in2.h: Regenerate.
+
+2011-10-21  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/13302
+       * elf32-i386.c (elf_i386_relocate_section): Replace
+       R_386_IRELATIVE with R_386_RELATIVE.
+
+       * elf64-x86-64.c (elf_x86_64_relocate_section): Replace
+       R_X86_64_IRELATIVE with R_X86_64_RELATIVE.
+
+2011-10-21  H.J. Lu  <hongjiu.lu@intel.com>.
+
+       * elf32-i386.c (elf_i386_relocate_section): Fix a typo in
+       comments.
+       * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
+
+2011-10-21  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/13302
+       * elf32-i386.c (elf_i386_link_hash_table): Add next_jump_slot_index
+       and next_irelative_index.
+       (elf_i386_link_hash_table_create): Initialize next_jump_slot_index
+       and next_irelative_index.
+       (elf_i386_allocate_dynrelocs): Increment reloc_count instead of
+       next_tls_desc_index.
+       (elf_i386_size_dynamic_sections): Set next_tls_desc_index and
+       next_irelative_index from reloc_count.
+       (elf_i386_finish_dynamic_symbol): Put R_386_IRELATIVE after
+       R_386_JUMP_SLOT.
+
+       * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
+       next_jump_slot_index and next_irelative_index.
+       (elf_x86_64_link_hash_table_create): Initialize
+       next_jump_slot_index and next_irelative_index.
+       (elf_x86_64_size_dynamic_sections): Set next_irelative_index
+       from reloc_count.
+       (elf_x86_64_finish_dynamic_symbol): Put R_X86_64_IRELATIVE after
+       R_X86_64_JUMP_SLOT.
+
+2011-10-20  Nick Clifton  <nickc@redhat.com>
+
+       PR ld/13049
+       * elf32-arm.c (STUB_SUFFIX): Avoid collision with user namespace
+       symbol names.
+       * elf64-ppc.c (STUB_SUFFIX): Likewise.
+       * elf32-hppa.c (STUB_SUFFIX): Likewise.
+
+2011-10-20  Alan Modra  <amodra@gmail.com>
+
+       * elf32-i386.c (i386_opcode16): Delete.
+       (elf_i386_check_tls_transition): Use memcmp to compare contents.
+       * elf64-x86-64.c (x86_64_opcode16, x86_64_opcode32): Delete.
+       (elf_x86_64_check_tls_transition): Use memcmp to compare contents.
+
+2011-10-19  Alan Modra  <amodra@gmail.com>
+
+       PR ld/13177
+       * elflink.c (_bfd_elf_gc_mark_rsec): Set symbol "mark".
+       (elf_gc_sweep_symbol): Don't test plt/got refcounts, instead test
+       "mark".  Hide undefweak too.  Clear def_regular and ref_regular.
+       * elf-m10300.c (mn10300_elf_relocate_section): Ignore unresolved
+       reloc errors from garbage-collected code.
+       * elf32-arm.c (elf32_arm_relocate_section): Likewise.
+       * elf32-bfin.c (bfin_relocate_section): Likewise.
+       (bfinfdpic_relocate_section): Likewise.
+       * elf32-cris.c (cris_elf_relocate_section): Likewise.
+       * elf32-frv.c (elf32_frv_relocate_section): Likewise.
+       * elf32-i386.c (elf_i386_relocate_section): Likewise.
+       * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
+       * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
+       * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
+       * elf32-s390.c (elf_s390_relocate_section): Likewise.
+       * elf32-sh.c (sh_elf_relocate_section): Likewise.
+       * elf32-spu.c (spu_elf_relocate_section): Likewise.
+       * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
+       * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
+       * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
+       * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
+       * elf64-s390.c (elf_s390_relocate_section): Likewise.
+       * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
+       * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
+       * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
+       * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
+
+2011-10-19  Alan Modra  <amodra@gmail.com>
+
+       PR ld/13311
+       * elflink.c (elf_link_output_extsym): Correct test for warning when
+       forced local executable syms are referenced from shared libraries.
+
+2011-10-19  Alan Modra  <amodra@gmail.com>
+
+       PR ld/13254
+       * elflink.c (bfd_elf_final_link): Emit error_textrel error.
+
+2011-10-18  David S. Miller  <davem@davemloft.net>
+
+       PR binutils/13301
+       * elfxx-sparc.c (sparc_elf_find_reloc_at_ofs): New function.
+       (_bfd_sparc_elf_relocate_section): Always move the __tls_get_addr
+       call delay slot instruction forward 4 bytes when performing
+       relaxation.
+
+2011-10-17  Alan Modra  <amodra@gmail.com>
+
+       PR ld/12975
+       PR ld/13195
+       * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Apply 2011-09-15
+       and 2011-09-29 bfd_elf_gc_mark_dynamic_ref_symbol changes here too.
+
+2011-10-14  Hans-Peter Nilsson  <hp@axis.com>
+
+       * elf32-cris.c (cris_elf_gc_sweep_hook) <R_CRIS_16_GOTPLT>
+       <R_CRIS_32_GOTPLT>: Fix missing update of gotplt refcount for
+       global symbols.
+       <R_CRIS_8, R_CRIS_16, R_CRIS_32>: New cases for similar missing
+       updates of the plt refcount.
+       (elf_cris_adjust_gotplt_to_got): Assert integrity of the gotplt
+       refcount in relation to the plt refcount.
+
+2011-10-13  Richard Sandiford  <richard.sandiford@linaro.org>
+
+       * elf32-arm.c (elf32_arm_final_link_relocate): Mark PLT calls via
+       stubs as resolved.
+
+2011-10-11  Alan Modra  <amodra@gmail.com>
+
+       PR binutils/13278
+       * archive.c (bfd_generic_archive_p): Only check first element
+       when target_defaulted.
+       (_bfd_construct_extended_name_table): Use ar_maxnamelen.
+       (_bfd_archive_bsd44_construct_extended_name_table): Likewise.
+
+2011-10-11  Alan Modra  <amodra@gmail.com>
+
+       PR binutils/13257
+       * archive.c (_bfd_find_nested_archive, _bfd_get_elt_at_filepos): Open
+       thin archive element using container target if not defaulted.
+
+2011-10-10  Nick Clifton  <nickc@redhat.com>
+
+       * po/es.po: Updated Spanish translation.
+       * po/fi.po: Updated Finnish translation.
+       * po/fr.po: Updated French translation.
+       * po/ru.po: Updated Russian translation.
+
+2011-10-10  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc64_elf_howto_table): Add R_PPC64_TOCSAVE entry.
+       (struct ppc_link_hash_table): Add tocsave_htab.
+       (struct tocsave_entry): New.
+       (tocsave_htab_hash, tocsave_htab_eq, tocsave_find): New functions.
+       (ppc64_elf_link_hash_table_create): Create tocsave_htab..
+       (ppc64_elf_link_hash_table_free): ..and delete it.
+       (build_plt_stub): Always put STD_R2_40R1 first.
+       (ppc64_elf_size_stubs): Check for R_PPC64_TOCSAVE following reloc
+       on plt call.  If present add prologue nop location to tocsave_htab.
+       (ppc64_elf_relocate_section): Convert prologue nop to std.  Skip
+       first insn of plt call stub when R_PPC64_TOCSAVE present.
+
+2011-10-08  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/13250
+       * elflink.c (elf_link_add_object_symbols): Preserve the maximum
+       alignment and size for common symbols.
+
+2011-10-08  Alan Modra  <amodra@gmail.com>
+
+       PR ld/13229
+       PR ld/13244
+       * elflink.c (elf_link_add_object_symbols): Don't make IR symbols
+       dynamic.
+
+2011-10-08  Alan Modra  <amodra@gmail.com>
+
+       PR ld/13229
+       * elflink.c (elf_link_output_extsym): Strip defined plugin symbols
+       even when strip_discarded is false.
+
+2011-10-05  Kai Tietz  <ktietz@redhat.com>
+
+       * coffgen.c (coff_write_alien_symbol): Don't write
+       symbol for discarded sections, if strip_discarded isn't
+       explicit set to false.
+       (coff_write_native_symbol): Likewise.
+
+2011-10-05  DJ Delorie  <dj@redhat.com>
+           Nick Clifton  <nickc@redhat.com>
+
+       * elf32-rx.c: Add support for PID mode.
+       (rx_elf_relocate_section): Add checks for unsafe PID relocations.
+       Include addend in R_RX_SYM relocations.
+
+2011-09-30  Tristan Gingold  <gingold@adacore.com>
+
+       * dwarf2.c (struct dwarf2_debug): Add field debug_sections.
+       (read_section): Add sec argument. Adjust the code to get section
+       names from it.
+       (read_indirect_string): Adjust call to read_section.
+       (read_abbrevs): Ditto.
+       (decode_line_info): Ditto.
+       (read_debug_ranges): Ditto.
+       (DWARF2_DEBUG_INFO, DWARF2_COMPRESSED_DEBUG_INFO): Remove.
+       (find_debug_info): Add debug_sections parameter.  Use it instead
+       the above macros.
+       (place_sections): Get section names from stash.
+       (find_line): Add debug_sections argument.  Initialize
+       debug_sections field of stash from it.
+       Adjust calls to find_debug_info.
+       (_bfd_dwarf2_find_nearest_line): Add debug_sections argument.
+       Adjust call to find_line.
+       (_bfd_dwarf2_find_line): Adjust call to find_line.
+       * libcoff-in.h (struct dwarf_debug_section): New declaration.
+       (coff_find_nearest_line_with_names): Likewise.
+       * libcoff.h: Regenerate.
+       * libbfd-in.h (struct dwarf_debug_section): Move declaration.
+       (dwarf_debug_sections): Likewise.
+       (_bfd_dwarf2_find_nearest_line): Add debug_sections argument.
+       * libbfd.h: Regenerate.
+       * elf.c (_bfd_elf_find_nearest_line): Adjust call to
+       _bfd_dwarf2_find_nearest_line.
+       * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Ditto.
+       * elf64-alpha.c (elf64_alpha_find_nearest_line): Ditto.
+       * elf32-arm.c (elf32_arm_find_nearest_line): Ditto.
+       * coffgen.c (coff_find_nearest_line_with_names): New function.
+       (coff_find_nearest_line): Calls coff_find_nearest_line_with_names.
+       * coff-rs6000.c (xcoff_debug_sections): New constant.
+       (xcoff_find_nearest_line): New function.
+       (rs6000coff_vec): Use xcoff_find_nearest_line.
+       (pmac_xcoff_vec): Ditto.
+
+2011-09-30  Alan Modra  <amodra@gmail.com>
+
+       PR ld/13235
+       * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add ha_relocs_not_using_r2.
+       (ppc64_elf_edit_toc): Check HA relocs.
+       (ha_reloc_match): Delete function.
+       (ppc64_elf_relocate_section): Remove delayed HA nop optimization.
+       Instead do it and low part optimization based on
+       ha_relocs_not_using_r2.
+
+2011-09-29  Alan Modra  <amodra@gmail.com>
+
+       PR ld/13233
+       * elflink.c (_bfd_elf_gc_mark_extra_sections): Mark single member
+       debug and special section groups.
+
+2011-09-29  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/13195
+       * elflink.c (_bfd_elf_merge_symbol): Don't set dynamic_def when
+       clearing def_dynamic.
+       (elf_link_add_object_symbols): Likewise.  Set dynamic_def when
+       setting def_dynamic.
+       (bfd_elf_gc_mark_dynamic_ref_symbol): Check if a symbol is
+       versioned.
+
+2011-09-27  Kai Tietz  <ktietz@redhat.com>
+
+       * coffcode.h (sec_to_styp_flags): Handle
+       SEC_LINK_DUPLICATES_SAME_CONTENTS, and
+       SEC_LINK_DUPLICATES_SAME_SIZE.
+
+2011-09-22  Tristan Gingold  <gingold@adacore.com>
+
+       * configure.in: Bump version to 2.22.51
+       * configure: Regenerate.
+
+2011-09-21  David S. Miller  <davem@davemloft.net>
+
+       * elfxx-sparc.c (_bfd_sparc_elf_merge_private_bfd_data): New.
+       * elfxx-sparc.h: Declare it.
+       * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Call it.
+       * elf64-sparc.c (elf64_sparc_merge_private_bfd_data): Likewise.
+
+2011-09-21  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_convert_section_name_to_bfd): Add comment.
+       Deals with size limited strings.
+       (bfd_mach_o_build_commands): Initialize more fields.
+
+2011-09-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/13177
+       * elflink.c (elf_gc_sweep_symbol): Also hide symbols without PLT
+       nor GOT references.
+
+2011-09-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/12975
+       * bfd-in.h (bfd_elf_size_dynamic_sections): Remove pointer
+       to struct bfd_elf_version_tree.
+
+       * elflink.c (elf_info_failed): Remove verdefs.
+       (_bfd_elf_export_symbol): Updated.
+       _bfd_elf_link_assign_sym_version): Likewise.
+       (bfd_elf_size_dynamic_sections): Remove pointer to struct
+       bfd_elf_version_tree.  Updated.
+       (bfd_elf_gc_mark_dynamic_ref_symbol): Check if a symbol is hidden
+       by linker script.
+
+       * linker.c (bfd_hide_sym_by_version): New.
+
+       * bfd-in2.h: Regenerated.
+
+2011-09-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/13178
+       * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Use .got.plt
+       if there are no GOT relocations.
+
+2011-09-09  Kai Tietz  <ktietz@redhat.com>
+
+       * peicode.h (pe_ILF_build_a_bfd): Don't remove leading underscore
+       for targets without symbol_leading_char.
+
+2011-09-08  Bernd Jendrissek  <bernd.jendrissek@gmail.com>
+
+       * bfdwin.c (bfd_get_file_window): Fix memory leak.
+
+2011-09-07  Alan Modra  <amodra@gmail.com>
+
+       PR ld/13131
+       * bfd/elf64-ppc.c (adjust_toc_syms): Ensure ppc64_elf_howto_table
+       is initialized.
+
+2011-09-06  Alan Modra  <amodra@gmail.com>
+
+       PR ld/13131
+       * elf64-ppc.c (adjust_toc_syms): Delete redundant code.
+       (ppc64_elf_edit_toc): Fix style nit.  Report some details
+       on linker failure due to reference in debug or non-alloc
+       sections to optimized away toc entry, and don't abort.
+
+2011-09-01  Christophe Lyon  <christophe.lyon@st.com>
+
+       * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip excluded
+       sections.
+
+2011-08-26  Nick Clifton  <nickc@redhat.com>
+
+       * po/es.po: Updated Spanish translation.
+
+2011-08-19  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc64_elf_edit_toc): Ignore can_optimize bit if
+       we haven't seen expected -mcmodel=medium/large code relocs.
+
+2011-08-18  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_read_segment): Initialize list.
+
+2011-08-17  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_write_section_32): Fix typo.
+
+2011-08-17  Alan Modra  <amodra@gmail.com>
+
+       PR ld/12762
+       * bfd-in.h (struct bfd_section_already_linked): Forward declare.
+       (_bfd_handle_already_linked): Declare.
+       * coff-alpha.c (_bfd_ecoff_section_already_linked): Define as
+       _bfd_coff_section_already_linked.
+       * coff-mips.c (_bfd_ecoff_section_already_linked): Likewise.
+       * coffcode.h (coff_section_already_linked): Likewise.
+       * cofflink.c (coff_link_add_symbols): Revert 2011-07-09 changes.
+       * elf-bfd.h: Likewise.
+       * libbfd-in.h: Likewise.
+       * targets.c: Likewise.
+       * linker.c (bfd_section_already_linked): Likewise.
+       (bfd_section_already_linked_table_lookup): Likewise.
+       (bfd_section_already_linked_table_insert): Likewise.
+       (_bfd_generic_section_already_linked): Likewise.  Call
+       _bfd_handle_already_linked.
+       (_bfd_handle_already_linked): New function, split out from..
+       * elflink.c (_bfd_elf_section_already_linked): ..here.  Revert
+       2011-07-09 changes.  Avoid unnecessary strcmp when matching
+       already_linked_list entries.  Match plugin linkonce section.
+       (section_signature): Delete.
+       * coffgen.c (_bfd_coff_section_already_linked): New function.
+       * libcoff-in.h (_bfd_coff_section_already_linked): Declare.
+       * libbfd.h: Regenerate.
+       * libcoff.h: Regenerate.
+       * bfd-in2.h: Regenerate.
+
+2011-08-14  Alan Modra  <amodra@gmail.com>
+
+       * elf32-ppc.c (ppc_elf_select_plt_layout): Force bss-plt when
+       shared and call to _mcount will go via plt.
+
 2011-08-14  Alan Modra  <amodra@gmail.com>
 
        * elf64-ppc.c: Prefix all einfo error strings with "%P: ".
This page took 0.032622 seconds and 4 git commands to generate.