]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix PowerPC64 ELFv2 icf_safe failures
authorAlan Modra <amodra@gmail.com>
Sun, 1 Jun 2014 12:31:44 +0000 (22:01 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 12 Jun 2014 15:29:05 +0000 (00:59 +0930)
commit7ad1b8cd5cc4243f02573aa8f509e638a79cff98
tree0b46018777e04113cbfe6d8d83f12f0379c4234a
parent0211120ecff9945c97c5e36a6e35ee423b987841
Fix PowerPC64 ELFv2 icf_safe failures

ELFv2 doesn't use .opd, so folding function code can't be allowed
in safe mode if a function's address might be taken.

* powerpc.cc (Target_powerpc::local_reloc_may_be_function_pointer):
Only ignore relocs on ELFv1.
(Target_powerpc::global_reloc_may_be_function_pointer): Likewise.
gold/ChangeLog
gold/powerpc.cc