OSDN Git Service

Merge some FRV FDPIC changes into the Blackfin code.
authorBernd Schmidt <bernd.schmidt@analog.com>
Tue, 11 Aug 2009 11:41:17 +0000 (11:41 +0000)
committerBernd Schmidt <bernd.schmidt@analog.com>
Tue, 11 Aug 2009 11:41:17 +0000 (11:41 +0000)
commit1cd70c81db99b4395d0f98144f4c5e603cfee395
tree861adf83300c4e74fdffc0a1077e0b54df1abb3b
parent550eed3393678837daacb0558cabc0ebc97fbcab
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