Updated Bulgarian, Spanish, Finnish, French, Russian and Ukranian translations.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 2ef36864bbd9340f1e64fef415e06710477ee813..004406d721e332db6f4b028b1c91580ee7855fbc 100644 (file)
@@ -1,3 +1,447 @@
+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: ".
+       * elf32-ppc.c: Likewise.
+       (ppc_elf_select_plt_layout): Use einfo rather than info to report
+       forced bss-plt.
+
+2011-08-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/13082
+       * elf64-x86-64.c (x86_64_elf_howto_table): Add R_X86_64_RELATIVE64.
+       (elf_x86_64_relocate_section): Treat R_X86_64_64 like R_X86_64_32
+       and zero-extend it to 64bit if addend is zero for x32.  Generate
+       R_X86_64_RELATIVE64 for x32.
+
+2011-08-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
+
+       * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
+       * bfd-in2.h (bfd_elf32_arm_set_target_relocs): Likewise.
+       * elf32-arm.c (elf32_arm_link_hash_table): New field.
+       (elf232_arm_link_hash_table_create): Initialise new field.
+       (check_use_blx): Change test depending on fix_arm1176.
+       (bfd_elf32_arm_set_target_relocs): Set fix_arm1176 from
+       command line options.
+
+2011-08-08  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (struct mach_o_segment_name_xlat): Add comments.
+       (segsec_names_xlat): Reorder elements.
+       (bfd_mach_o_read_section_32): Fix typo.
+       (bfd_mach_o_read_section_64): Fix typo.
+
+2011-08-08  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.h (BFD_MACH_O_SEGNAME_SIZE): New macro.
+       (BFD_MACH_O_SECTNAME_SIZE): Ditto.
+       (bfd_mach_o_section): Use them.  Add next field.
+       (bfd_mach_o_segment_command): Replace sections array by
+       sect_head and sect_tail.
+       (bfd_mach_o_get_mach_o_section): New macro.
+       (bfd_mach_o_lookup_section): Remove.
+       (bfd_mach_o_new_section_hook): New function.
+       * mach-o.c (bfd_mach_o_normalize_section_name): Use strncmp
+       instead of strcmp.
+       (bfd_mach_o_convert_section_name_to_bfd): Replaces section
+       parameter with segname and sectname parameters.  Adjust.
+       (bfd_mach_o_append_section_to_segment): New function.  Use a
+       linked list for Mach-O sections.
+       (bfd_mach_o_write_segment_32): Adjust.
+       (bfd_mach_o_write_segment_64): Ditto.
+       (bfd_mach_o_build_commands): Fix comment.  Adjust.
+       (bfd_mach_o_flatten_sections): Adjust.
+       (bfd_mach_o_print_section_map): Adjust.
+       (bfd_mach_o_set_section_flags_from_bfd): Ditto.
+       (bfd_mach_o_new_section_hook): New function.
+       (bfd_mach_o_init_section_from_mach_o): Ditto.
+       (bfd_mach_o_read_section_32): Remove section parameter.
+       Return a section instead.
+       (bfd_mach_o_read_section_64): Ditto.
+       (bfd_mach_o_read_section): Ditto.
+       (bfd_mach_o_make_bfd_section): Adjust.
+       (bfd_mach_o_read_segment): Adjust for new profile of
+       bfd_mach_o_read_section.
+       (bfd_mach_o_lookup_section): Remove.
+       * mach-o-target.c (bfd_mach_o_new_section_hook): Remove.
+
+2011-08-08  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.h (bfd_mach_o_version_min_command): New structure.
+       (bfd_mach_o_load_command): Add version_min.
+       (mach_o_data_struct): Fix comment.
+       * mach-o.c (bfd_mach_o_read_version_min): New function.
+       (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_FUNCTION_STARTS,
+       BFD_MACH_O_LC_VERSION_MIN_MACOSX and
+       BFD_MACH_O_LC_VERSION_MIN_IPHONEOS.
+       (bfd_mach_o_get_name_or_null): New function.
+       (bfd_mach_o_get_name): Use the above new one.
+       (bfd_mach_o_load_command_name): Add the above new commands.
+       (bfd_mach_o_bfd_print_private_bfd_data): Display numerically
+       unknown commands.  Handle BFD_MACH_O_LC_FUNCTION_STARTS,
+       BFD_MACH_O_LC_VERSION_MIN_MACOSX and
+       BFD_MACH_O_LC_VERSION_MIN_IPHONEOS.
+
+2011-08-08  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.h: Move size macros to external.h
+       Move reloc macros to reloc.h and x86-64.h.
+       * mach-o-i386.c: Includes mach-o/reloc.h
+       * mach-o-x86-64.c: Ditto and includes mach-o/x86-64.h
+       * mach-o.c: Add includes.
+       (bfd_mach_o_write_header): Use structure from external.h to convert.
+       (bfd_mach_o_write_thread): Ditto.
+       (bfd_mach_o_write_relocs): Ditto.
+       (bfd_mach_o_write_section_32): Ditto.
+       (bfd_mach_o_write_section_64): Ditto.
+       (bfd_mach_o_write_segment_32): Ditto.
+       (bfd_mach_o_write_segment_64): Ditto.
+       (bfd_mach_o_write_symtab): Ditto.
+       (bfd_mach_o_write_contents): Ditto.
+       (bfd_mach_o_read_header): Ditto.
+       (bfd_mach_o_read_section_32): Ditto.
+       (bfd_mach_o_read_section_64): Ditto.
+       (bfd_mach_o_read_symtab_symbol): Ditto.
+       (bfd_mach_o_read_dylinker): Ditto.
+       (bfd_mach_o_read_dylib): Ditto.
+       (bfd_mach_o_read_dysymtab): Ditto.
+       (bfd_mach_o_read_symtab): Ditto.
+       (bfd_mach_o_read_linkedit): Ditto.
+       (bfd_mach_o_read_str): Ditto.
+       (bfd_mach_o_read_dyld_info): Ditto.
+       (bfd_mach_o_read_segment): Ditto.
+       (bfd_mach_o_read_command): Ditto.
+       (bfd_mach_o_archive_p): Ditto.
+       (bfd_mach_o_canonicalize_one_reloc): Ditto. Change the BUF parameter.
+       (bfd_mach_o_canonicalize_relocs): Adjust to call the above function.
+       (bfd_mach_o_read_dysymtab_symbol): Rename BUF variable.
+       (bfd_mach_o_read_uuid): Remove useless cast.  Use a macro instead
+       of an hard-coded value.
+
+2011-08-08  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o-x86-64.c (bfd_mach_o_x86_64_mkobject): Fix cut-and-past typos.
+       (bfd_mach_o_x86_64_swap_reloc_out): Handle BFD_RELOC_32_PCREL,
+       BFD_RELOC_MACH_O_X86_64_SUBTRACTOR64 and
+       BFD_RELOC_MACH_O_X86_64_GOT_LOAD.  Share common code.
+
+2011-08-08  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_normalize_section_name): New function.
+       (bfd_mach_o_convert_section_name_to_bfd): Use it.
+       (bfd_mach_o_get_section_type_from_name): New function.
+       (bfd_mach_o_get_section_attribute_from_name): Ditto.
+       * mach-o.h (bfd_mach_o_section): Move bfdsection field at the end.
+       Add comments.  Add prototypes for the above new functions.
+
+2011-08-05  Mark Kettenis  <kettenis@gnu.org>
+
+       * netbsd-core.c (netbsd_core_vec): Init match_priority field.
+
+2011-08-05  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (maybe_strip_output): New function.
+       (ppc64_elf_size_stubs): Use it to strip .branch_lt and .eh_frame.
+
+2011-08-05  Alan Modra  <amodra@gmail.com>
+
+       PR ld/12762
+       * elflink.c (_bfd_elf_section_already_linked): Return matched
+       status.  Remove COFF comdat section handling.
+       * linker.c (_bfd_generic_section_already_linked): Return matched
+       status.  Don't set SEC_GROUP in l_flags for plugin entries.
+       (bfd_section_already_linked): Update prototype.
+       * targets.c (_section_already_linked): Likewise.
+       * elf-bfd.h (_bfd_elf_section_already_linked): Likewise.
+       * libbfd-in.h (_bfd_generic_section_already_linked): Likewise.
+       (_bfd_nolink_section_already_linked): Update.
+       * libbfd.h: Regenerate.
+       * bfd-in2.h: Regenerate.
+
+2011-08-05  Alan Modra  <amodra@gmail.com>
+
+       * elf32-ppc.c: Include dwarf2.h.
+       (struct ppc_elf_link_hash_table): Add glink_eh_frame.
+       (ppc_elf_create_glink): Create .eh_frame section.
+       (glink_eh_frame_cie): New array.
+       (ppc_elf_size_dynamic_sections): Size glink_eh_frame.
+       (ppc_elf_finish_dynamic_sections): Write glink_eh_frame.
+
+2011-08-04  Tristan Gingold  <gingold@adacore.com>
+
+       * vms-alpha.c (_bfd_vms_write_eeom): Round vms_linkage_index.
+       (_bfd_vms_write_etir): Initialize vms_linkage_index to 0.
+
+2011-08-03  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_canonicalize_symtab): Handle no symbols case.
+       (bfd_mach_o_read_symtab_symbols): Return if no symbols.
+
+2011-08-02  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * elfxx-mips.c (check_4byte_branch): Remove function.
+       (check_relocated_bzc): New function.
+       (_bfd_mips_elf_relax_section): Permit the relaxation of LUI
+       instructions that immediately follow a compact branch
+       instruction.
+
+2011-08-02  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (build_plt_stub): Correct emitted relocs when no
+       plt_static_chain.
+       (ppc_build_one_stub): Adjust get_relocs call to suit..
+       (ppc_size_one_stub): ..and reloc sizing.  Correct plt size corner case.
+
 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/13048
 
 2011-07-26  Alan Modra  <amodra@gmail.com>
 
-       * elf32-ppc.c: Include dwarf2.h.
-       (struct ppc_elf_link_hash_table): Add glink_eh_frame.
-       (ppc_elf_create_glink): Create .eh_frame section.
-       (glink_eh_frame_cie): New array.
-       (ppc_elf_size_dynamic_sections): Size glink_eh_frame.
-       (ppc_elf_finish_dynamic_sections): Write glink_eh_frame.
-       * elf64-ppc.c: Include dwarg2.h.
+       * elf64-ppc.c: Include dwarf2.h.
        (struct ppc_link_hash_table): Add glink_eh_frame.
        (create_linkage_sections): Create .eh_frame section.
        (ppc64_elf_size_dynamic_sections): Arrange to drop unneeded
This page took 0.026857 seconds and 4 git commands to generate.