+2010-10-11 Thomas Schwinge <thomas@codesourcery.com>
+
+ * elf32-arm.c (elf32_arm_final_link_relocate)
+ (elf32_arm_relocate_section): Handle relocations against STN_UNDEF.
+
+2010-10-11 Dave Korn <dave.korn.cygwin@gmail.com>
+
+ * elflink.c (_bfd_elf_link_output_relocs): Delete unused variable
+ "output_rel_hdr".
+
+2010-10-09 John Tytgat <john@bass-software.com>
+
+ * reloc.c (BFD_RELOC_ARM_HVC): Add.
+ * libbfd.h: Regenerate.
+
+2010-10-08 Kai Tietz <kai.tietz@onevision.com>
+
+ * pei-x86_64.c (find_next_xdata_or_end): Removed.
+ (pex64_dump_xdata): Remove arguments stop, onaline,
+ and pdata. New argument endx. Print term "none"
+ instead of misleading "CFA".
+ (sort_xdata_arr): New function.
+ (pex64_bfd_print_pdata): Use binary search/sort for unwind-RVAs
+ instead of searching quadratic.
+
+2010-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
+ Alan Modra <amodra@gmail.com>
+
+ Fix build with -DDEBUG=7
+ * elf.c (_bfd_elf_symbol_from_bfd_symbol): Remove call
+ to deleted function elf_symbol_flags. Add typecast to avoid warning.
+ * elf32-rx.c (dump_symbol) : Rename to..
+ (rx_dump_symbol): ..this to avoid link errors.
+ * elflink.c (elf_link_input_bfd): Add typecast to avoid warnings.
+ (bfd_elf_perform_complex_relocation): Likewise.
+ * elf32-xtensa.c (print_action_list): Likewise.
+
+2010-10-06 Nathan Sidwell <nathan@codesourcery.com>
+
+ * elf32-arm.c (elf32_arm_stub_long_branch_any_arm_pic,
+ elf32_arm_stub_long_branch_any_arm_pic): Use a consistent name for
+ ip/r12.
+ (arm_type_of_stub): Remove superfluous braces.
+
+2010-10-04 Bernd Schmidt <bernds@codesourcery.com>
+
+ * elf-bfd.h (struct bfd_elf_section_reloc_data): New structure.
+ (struct bfd_elf_section_data): New members REL and RELA; delete
+ members REL_HDR, REL_HDR2, REL_COUNT, REL_COUNT2, REL_IDX,
+ REL_IDX2, REL_HASHES.
+ (_bfd_elf_init_reloc_shdr): Adjust declaration.
+ (_bfd_elf_single_rel_hdr): Declare.
+ (RELOC_AGAINST_DISCARDED_SECTION): Use it.
+ * elf.c (bfd_section_from_shdr): Adjusted to match changes in
+ data structures.
+ (_bfd_elf_init_reloc_shdr): New arg RELDATA. Remove arg REL_HDR.
+ All callers changed. Allocate memory for the Elf_Internal_Shdr
+ structure.
+ (_bfd_elf_single_rel_hdr): New function.
+ (struct fake_section_arg): New structure.
+ (elf_fake_section): Expect to see a pointer to it in the third
+ argument. If doing a relocatable link, allocate both REL and RELA
+ sections as needed.
+ (assign_section_numbers): Adjusted to match changes in
+ data structures.
+ (_bfd_elf_compute_section_file_positions): Call elf_fake_sections
+ with a struct fake_section_args argument.
+ * elfcode.h (elf_write_relocs): Adjusted to match changes in
+ data structures.
+ (elf_slurp_reloc_table): Likewise.
+ * elflink.c (_bfd_elf_link_read_relocs): Likewise.
+ (_bfd_elf_link_size_reloc_section): Remove arg REL_HDR, replace with
+ RELDATA. Remove argument O. All callers changed. Remove code to
+ discover the right rel_hdr and count.
+ (_bfd_elf_link_output_relocs): Adjusted to match changes in
+ data structures.
+ (elf_link_adjust_relocs): Remove args REL_HDR, COUNT and REL_HASH;
+ replace with RELDATA. All callers changed.
+ (elf_link_input_bfd): Correctly generate rel_hash data when both
+ REL and RELA sections are present.
+ (elf_reloc_link_order): Adjusted to match changes in
+ data structures.
+ (bfd_elf_final_link): Simplify code to count relocs. Free the
+ hashes array for both REL and RELA.
+ (get_dynamic_reloc_section_name): Use _bfd_elf_single_reloc_hdr
+ * elf32-m32r.c (m32r_elf_fake_sections, elf_backend_fake_sections):
+ Delete.
+ * elf32-tic6x.c (elf32_tic6x_fake_sections, elf_backend_fake_sections):
+ Delete.
+ (elf32_tic6x_rel_relocation_p): Adjusted to match changes in
+ data structures.
+ * elf32-microblaze.c (microblaze_elf_check_relocs): Use
+ _bfd_elf_single_rel_hdr.
+ * elf32-ppc.c (ppc_elf_relax_section): Likewise.
+ * elf32-spu.c (spu_elf_relocate_section): Likewise.
+ * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
+ * elf64-hppa.c (get_reloc_section): Likewise.
+ * elf64-mips.c (mips_elf64_slurp_reloc_table): Adjusted to match
+ changes in data structures.
+ (mips_elf64_write_relocs): Use _bfd_elf_single_rel_hdr.
+ * elf64-ppc.c (ppc64_elf_edit_opd): Likewise.
+ (ppc64_elf_edit_toc): Likewise.
+ (get_relocs): Adjusted to match changes in data structures.
+ Allocate an Elf_Internal_Shdr structure if necessary.
+ (ppc64_elf_finish_dynamic_sections): Use _bfd_elf_single_rel_hdr.
+ * elf64-sparc.c (elf64_sparc_slurp_reloc_table): Adjusted to match
+ changes in data structures.
+ * elfxx-ia64.c (get_reloc_section): Use _bfd_elf_single_rel_hdr.
+ * elfxx-mips.c (MIPS_RELOC_RELA_P): Remove macro.
+ (mips_elf_rel_relocation_p): Adjusted to match changes in data
+ structures.
+ (_bfd_mips_elf_relocate_section): Use mips_elf_rel_relocation_p rather
+ than MIPS_RELOC_RELOCA_P.
+ * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use
+ _bfd_elf_single_rel_hdr.
+ (_bfd_sparc_elf_relocate_section): Likewise.
+
+2010-10-01 Thomas Schwinge <thomas@codesourcery.com>
+
+ * elf32-arm.c (elf32_arm_size_stubs): Don't choke on local symbols in
+ SHN_UNDEF, SHN_ABS, SHN_COMMON.
+
+2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/11812
+ * elf32-i386.c (elf_i386_size_dynamic_sections): Don't
+ allocate .got.plt section if there are no GOT nor PLT
+ entries and there is no refeence to _GLOBAL_OFFSET_TABLE_.
+ * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Li.kewise.
+
+ * elflink.c (_bfd_elf_define_linkage_sym): Clear non_elf.
+
+2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * configure: Regenerate.
+
+2010-09-24 Thomas Schwinge <thomas@codesourcery.com>
+
+ * elf32-arm.c, elf32-cris.c, elf32-hppa.c, elf32-i370.c, elf32-m32r.c,
+ elf32-m68k.c, elf32-microblaze.c, elf32-ppc.c, elf32-score.c,
+ elf32-score7.c, elf32-sh.c, elf32-vax.c, elf32-xtensa.c, elf64-alpha.c,
+ elf64-hppa.c, elf64-mips.c, elf64-ppc.c, elf64-sparc.c, elfcode.h,
+ elflink.c, elfxx-ia64.c, elfxx-mips.c: Use STN_UNDEF when referring to
+ the zero symbol index.
+
+ * elflink.c (bfd_elf_reloc_symbol_deleted_p): Compare the symbol index
+ to STN_UNDEF, not SHN_UNDEF.
+
+2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
+
+ * elf32-tic6x.c (elf32_tic6x_fake_sections): New function.
+ (elf_backend_fake_sections): Define.
+
+2010-09-23 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
+
+ * bfd-in2.h (BFD_RELOC_ARM_HVC): New enum value.
+
+2010-09-23 Alan Modra <amodra@gmail.com>
+
+ * cpu-d10v.c: Make bits_per_address 18 for all arch_info entries.
+
+2010-09-23 Alan Modra <amodra@gmail.com>
+
+ * elf.c (_bfd_elf_init_private_section_data): Allow for SEC_RELOC
+ difference between input and output section.
+
+2010-09-22 Kai Tietz <kai.tietz@onevision.com>
+
+ * coffcode.h (sec_to_styp_flags): Adjust debug
+ sections to be conform to pe-coff specification
+ and avoid marking them as excluded.
+ (styp_to_sec_flags): Doing reverse mapping.
+
+ * peXXigen.c (_bfd_XXi_final_link_postscript): Add handling for
+ setting IAT directory entry.
+
+2010-09-20 Richard Henderson <rth@redhat.com>
+
+ * elf64-alpha.c (elf64_alpha_howto_table): Use bfd_elf_generic_reloc.
+
+2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * elfxx-mips.c (mips_elf_link_hash_entry): Add got_only_for_calls.
+ (mips_elf_link_hash_newfunc): Initialize it.
+ (mips_elf_record_global_got_symbol): Add a for_call parameter.
+ (mips_elf_count_got_symbols): Check SYMBOL_CALLS_LOCAL rather
+ than SYMBOL_REFERENCES_LOCAL if the GOT entry is only used for calls.
+ Try to remove .got entries in favour of .got.plt entries on VxWorks.
+ (_bfd_mips_elf_check_relocs): Do not try to avoid allocating
+ a global GOT entry for VxWorks calls. Update uses of
+ mips_elf_record_global_got_symbol.
+ (allocate_dynrelocs): Set got_only_for_calls to false if the GOT
+ entry is used for dynamic relocations.
+
+2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * elfxx-mips.c (mips_got_entry): Adjust commentary.
+ (mips_elf_create_local_got_entry): If given a symbol, check that it
+ has been assigned to the local part of the GOT.
+ (mips_elf_count_got_symbols): Take the bfd_link_info as argument
+ instead of the master GOT. Put all locally-binding symbols in
+ the local area.
+ (mips_elf_make_got_per_bfd): Use global_got_area to decide whether
+ a symbol lives in the local or global area.
+ (mips_elf_local_relocation_p): Remove check_forced argument and
+ retain only the !check_forced behavior.
+ (mips_elf_calculate_relocation): Adjust call accordingly.
+ Use global_got_area to decide whether an output relocation
+ should be local or global. Explicitly decay R_MIPS_GOT_PAGE
+ into R_MIPS_GOT_DISP where appropriate. Fix selection of
+ local vs. global semantics for R_MIPS*_26. Remove redundant
+ reevaluation of what is stored in was_local_p.
+ (mips_elf_create_dynamic_relocation): Use global_got_area to decide
+ whether the relocation should be against a global or local symbol.
+ (mips_elf_lay_out_got): Update the GOT traversal after the above
+ change to mips_elf_count_got_symbols.
+ (mips_elf_adjust_addend): Adjust call to mips_elf_local_relocation_p.
+ (_bfd_mips_elf_relocate_section): Likewise.
+ (_bfd_mips_elf_finish_dynamic_symbol): Use global_got_area to decide
+ whether the symbol has a global got entry.
+ (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
+
+2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * elfxx-mips.c (allocate_dynrelocs): Don't add relocation symbols
+ to the global GOT on VxWorks.
+
+2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * elfxx-mips.c (_bfd_mips_elf_check_relocs): On VxWorks,
+ exclude __GOTT_BASE__ and __GOTT_INDEX__ from the warning
+ about HI/LO relocations in shared objects.
+
+2010-09-16 Alan Modra <amodra@gmail.com>
+
+ * elf32-spu.c (spu_elf_size_sections): Omit fixups for non-alloc
+ sections.
+ (spu_elf_create_sections): Mark .fixup with SEC_LINKER_CREATED and
+ set dynobj.
+ (spu_elf_finish_dynamic_sections): New function.
+ (elf_backend_finish_dynamic_sections): Define.
+
+2010-09-16 Alan Modra <amodra@gmail.com>
+
+ * elf.c (bfd_elf_get_default_section_type): Don't test SEC_NEVER_LOAD.
+ * elflink.c (elf_link_input_bfd): Likewise.
+
+2010-09-15 Kai Tietz <kai.tietz@onevision.com>
+
+ * pei-x86_64.c (pex64_get_unwind_info): Reorgnized.
+ (pex64_get_scope_entry): Removed.
+ (find_next_xdata_or_end): New helper.
+ (pex64_dump_xdata): Reworked.
+ (pex64_bfd_print_pdata): Add checking for
+ valid pdata sorting and values. Reworked
+ output.
+
+2010-09-15 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/12004
+ * plugin.c (bfd_plugin_object_p): Handle NULL iostream.
+
2010-09-14 Kai Tietz <kai.tietz@onevision.com>
+ * pe-x86_64.c (COFF_SECTION_ALIGNMENT_ENTRIES): Make
+ .rdata, .data, and .text partial matched section names.
+ * pei-x86_64.c: Likewise.
+
* peXXigen.c (sort_x64_pdata): New helper.
(_bfd_XXi_final_link_postscript): Do pdata sorting.
2010-09-09 Bernd Schmidt <bernds@codesourcery.com>
- bfd/
* elflink.c (bfd_elf_final_link): Correct calculation of
max_external_reloc_size.