[GOLD] PowerPC relocation signed overflow check
authorAlan Modra <amodra@gmail.com>
Thu, 1 Aug 2019 08:13:29 +0000 (17:43 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 2 Aug 2019 08:52:42 +0000 (18:22 +0930)
commit6a010cf67a96adcaf80c74f926df6b42ce13e7df
treec420914e864baabfd4275178df6301b3d4b2f148
parent97c0a07968a7c64e1de96abff8937d089f09b3e7
[GOLD] PowerPC relocation signed overflow check

Relocations with right shifts were calculating wrong overflow status.
Since the addr34 split-field reloc is implemented as an 18-bit high
part with value shifted right by 16 and a 16-bit low part, most of the
pc-relative relocs were affected.

* powerpc.cc (Powerpc_relocate_functions::rela, rela_ua): Perform
signed right shift for signed overflow check.
gold/ChangeLog
gold/powerpc.cc