bfd/
authorAlan Modra <amodra@gmail.com>
Thu, 8 Dec 2005 11:41:12 +0000 (11:41 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 8 Dec 2005 11:41:12 +0000 (11:41 +0000)
commit0ba079102f920283bc5cd17805c4ea70f01fe378
treef9e295e9e038b2d0c32aefdf5face21c91e06d8b
parent362307121f3de7cbf4646f028d5c7faeafe68c94
bfd/
* elf32-ppc.c (struct ppc_elf_link_hash_table): Add emit_stub_syms.
(ppc_elf_select_plt_layout): Add emit_stub_syms param, save to htab.
(add_stub_sym): New function.
(allocate_dynrelocs): Call add_stub_sym.
(ppc_elf_size_dynamic_sections): Emit __glink and __glink_PLTresolve
when emit_stub_syms.
* elf32-ppc.h (ppc_elf_select_plt_layout): Update prototype.
ld/
* emultempl/ppc32elf.em (emit_stub_syms): New var.
(ppc_after_open): Pass it to ppc_elf_select_plt_layout.
(PARSE_AND_LIST_PROLOGUE <OPTION_STUBSYMS>): Define.
(PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
(PARSE_AND_LIST_OPTIONS): Describe emit-stub-syms.
(PARSE_AND_LIST_OPTIONS): Handle it.
bfd/ChangeLog
bfd/elf32-ppc.c
bfd/elf32-ppc.h
ld/ChangeLog
ld/emultempl/ppc32elf.em