[GOLD] Correct powerpc64 ifunc plt entry test
authorAlan Modra <amodra@gmail.com>
Thu, 22 Jan 2015 02:09:50 +0000 (12:39 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 22 Jan 2015 05:12:45 +0000 (15:42 +1030)
commitb01a4b043a5b08e1208b1fedd61a6f3d65a328e0
treecd6431e80039865ce540f1001fc7bd0623691352
parentb99e251379fd81716660e88b933f0bc015d6c6d8
[GOLD] Correct powerpc64 ifunc plt entry test

Found when attempting to build an ELFv2 Linux kernel.  We don't
generally need a plt entry for ELFv2 got relocs, only on ifunc, just
like ppc32.

* powerpc.cc (Target_powerpc::Scan::local <got relocs>): Correct
condition for need of ifunc plt entry.
(Target_powerpc::Scan::global <got relocs>): Likewise.
gold/ChangeLog
gold/powerpc.cc