Merge some FRV FDPIC changes into the Blackfin code.
authorBernd Schmidt <bernds@codesourcery.com>
Tue, 11 Aug 2009 11:41:17 +0000 (11:41 +0000)
committerBernd Schmidt <bernds@codesourcery.com>
Tue, 11 Aug 2009 11:41:17 +0000 (11:41 +0000)
commit6a9adeca2c38bef2ae6554ecf954babda5dc6522
tree8821a9a6e0155f54bcab6c7cbf91e18ab3d275d7
parentba7e13e478833dff328eb2f818bcbcc0cec0fb3b
Merge some FRV FDPIC changes into the Blackfin code.
* elf32-bfin.c (struct bfinfdpic_elf_link_hash_table): Add pointer to
summary reloc information.
(bfinfdpic_dynamic_got_plt_info): New.
(_bfin_create_got_section): Create the PLT section here.
(elf32_bfinfdpic_create_dynamic_sections): Not here.
(_bfinfdpic_count_nontls_entries): Move out of...
(_bfinfdpic_count_got_plt_entries): ... here.
(_bfinfdpic_count_relocs_fixups): Likewise.
(_bfinfdpic_reset_got_plt_entries): New.
(_bfinfdpic_size_got_plt): Move out of...
(elf32_bfinfdpic_size_dynamic_sections): ... here.
(bfinfdpic_relocate_section): Be careful not to call
_bfinfdpic_add_rofixup or _bfinfdpic_add_dyn_reloc for deleted relocs.
(bfinfdpic_check_discarded_relocs, bfinfdpic_elf_discard_info):
New functions.
(elf_backend_discard_info): Define for FD-PIC.
bfd/ChangeLog
bfd/elf32-bfin.c