[GOLD] PowerPC got reloc optimisation
authorAlan Modra <amodra@gmail.com>
Wed, 26 Jun 2019 12:38:54 +0000 (22:08 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 13 Jul 2019 00:27:50 +0000 (09:57 +0930)
commitc9b8abb7af46c9da4b50ad8495ab2824c4125962
tree94518846635db5adaf8ee371f2bc22e9f892e4fa
parente4dff7651becba48d805e39655138f7f6ca30485
[GOLD] PowerPC got reloc optimisation

Note that gold won't remove unused GOT entries, in contrast to ld.bfd
which will.

* powerpc.cc (Powerpc_relobj::make_got_relative): New function.
(relative_value_is_known): New functions.
(Target_powerpc::Relocate::relocate): Edit code using
GOT16_HA, GOT16_LO_DS, and GOT_PCREL34 relocs.
gold/ChangeLog
gold/powerpc.cc