Parameterize elf32-i386 PLT generation:
authorRoland McGrath <roland@gnu.org>
Thu, 28 Jul 2011 18:47:56 +0000 (18:47 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 28 Jul 2011 18:47:56 +0000 (18:47 +0000)
commit25e762b98d2a9891b27043cde93d733287950465
tree7f083fa55b94c456f7ea74ac4c0d6650e18480a7
parent23209a785322071cf1be95d3d5c50b78d7720db0
Parameterize elf32-i386 PLT generation:

* elf32-i386.c (struct elf_i386_plt_layout): New type.
(GET_PLT_ENTRY_SIZE): New macro.
(elf_i386_plt): New variable.
(struct elf_i386_backend_data): New member `plt'.
(elf_i386_arch_bed): Add initializer for it.
(elf_i386_vxworks_arch_bed): Likewise.
(elf_i386_allocate_dynrelocs): Use GET_PLT_ENTRY_SIZE.
(elf_i386_plt_sym_val): Likewise.
(elf_i386_relocate_section): Likewise.
(elf_i386_finish_dynamic_symbol): Likewise.
Also use other elf_i386_plt_layout members for PLT details.
(elf_i386_finish_dynamic_sections): Likewise.
bfd/ChangeLog
bfd/elf32-i386.c