* powerpc.cc (is_branch_reloc): Forward declare.
authorAlan Modra <amodra@gmail.com>
Tue, 12 Mar 2013 22:46:19 +0000 (22:46 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 12 Mar 2013 22:46:19 +0000 (22:46 +0000)
commit4d9aa1551545dd5365d35a0844d3b7a5a35d02f3
treea7dca097cb31fbcdcf14394961a242fc5c185850
parent2d450646ca4c6972bf1d2c82c9e4453fd3381339
* powerpc.cc (is_branch_reloc): Forward declare.
(Target_powerpc::do_can_check_for_function_pointers): New predicate.
(Target_powerpc::Scan::local_reloc_may_be_function_pointer): Return
false for 64-bit, true for 32-bit non-branch relocs.
(Target_powerpc::Scan::global_reloc_may_be_function_pointer): Likewise.
* testsuite/Makefile.am (icf_test): Use linker map file instead of
nm output.
(icf_safe_test): Generate linker map file as well as nm output.
(icf_safe_so_test): Likewise.
* testsuite/Makefile.in: Regenerate.
* testsuite/icf_test.sh: Parse linker map file to determine
section folding.
* testsuite/icf_safe_test.sh: Likewise.  Expect folding for PowerPC.
* testsuite/icf_safe_so_test.sh: Likewise.
(X86_32_or_ARM_specific_safe_fold): Merge into..
(arch_specific_safe_fold): ..this.
(X86_64_specific_safe_fold): Delete unused function.
gold/ChangeLog
gold/powerpc.cc
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/icf_safe_so_test.sh
gold/testsuite/icf_safe_test.sh
gold/testsuite/icf_test.sh