[GOLD] PowerPC64 support for sym+addend GOT entries
authorAlan Modra <amodra@gmail.com>
Thu, 26 Aug 2021 02:47:51 +0000 (12:17 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 17 Sep 2021 22:50:11 +0000 (08:20 +0930)
commit5cdb4f14426a99ec8fcba843fa503efdc55fa078
treea3f47ff28cc2d40165b4f61a2e06cebe919990b1
parente4d49a0f908415edb7a7e718ef2008a96dd43f9b
[GOLD] PowerPC64 support for sym+addend GOT entries

Pass addends to all the GOT handling functions, plus remove some
extraneous asserts.

PR 28192
* powerpc.cc (Output_data_got_powerpc): Add addend parameter to
all methods creating got entries.
(Target_powerpc::Scan::local): Pass reloc addend to got handling
functions, and when creating dynamic got relocations.
(Target_powerpc::Scan::global): Likewise.
(Target_powerpc::Relocate::relocate): Likewise.  Remove extraneous
assertions.
gold/powerpc.cc