* elf32-ppc.c (ppc_elf_check_relocs): Set pointer_equality_neededgdb_6_8-branchgdb_6_8-2008-02-26-branchpointgdb_6_8-2008-03-27-releaseinsight_6_8-branchpoint
commit7dcc3506036e54ac1caf6ab3296f812c98297ac5
authorAlan Modra <amodra@bigpond.net.au>
Tue, 26 Feb 2008 08:36:03 +0000 (26 08:36 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Tue, 26 Feb 2008 08:36:03 +0000 (26 08:36 +0000)
tree25ce9ffb4ce2fe45c2048f89914c6c33a8ad8e9a
parentb503293e9bcf050278a20fe1531b4655029382f6
* elf32-ppc.c (ppc_elf_check_relocs): Set pointer_equality_needed
for R_PPC_REL32 syms.  Don't set non_got_ref on branch reloc syms,
and assume branch relocs are not dynamic when non-shared.
(readonly_dynrelocs): New function, split out from..
(maybe_set_textrel): ..here, renamed from old readonly_dynrelocs.
(ppc_elf_adjust_dynamic_symbol): For symbols generating plt entries,
clear non_got_ref..
(allocate_dynrelocs): ..and don't set u.def for undefined weak.
Do allow dynamic relocs on undefined symbols.
(ppc_elf_adjust_dynamic_symbol): Use readonly_dynrelocs.
(ppc_elf_relocate_section): Mirror dynamic reloc changes in
check_relocs.
(ppc_elf_finish_dynamic_symbol): Don't give a warning on weak
plt symbols needing pointer_equality_needed.
bfd/ChangeLog
bfd/elf32-ppc.c