[GOLD] Avoid duplicate PLT stub symbols on ppc32
authorJames Clarke <jrtc27@jrtc27.com>
Tue, 20 Jun 2017 08:31:52 +0000 (18:01 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 20 Jun 2017 08:31:52 +0000 (18:01 +0930)
commit94de2a2c57b7f6b2870f72ecdcacc6d909c6421a
tree19d301f1ac6ec42be6944997ab9180c59bd4459e
parentabfa390dac6ffcfc6de9659c0b78cfe524347450
[GOLD] Avoid duplicate PLT stub symbols on ppc32

If two objects are compiled with -fPIC or -fPIE and call the same
function, two different PLT entries are created, one for each object,
but the same stub symbol name is used for both.

* powerpc.cc (Stub_table::define_stub_syms): Always include object's
uniq_ value.
gold/ChangeLog
gold/powerpc.cc