PowerPC gold, fix 32-bit branch address arithmetic
authorAlan Modra <amodra@gmail.com>
Thu, 4 Dec 2014 11:15:05 +0000 (21:45 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 4 Dec 2014 11:16:49 +0000 (21:46 +1030)
commit2fb062bac3e5f102f8608df5548bebf2682b0fec
tree4b408ada1e0d40c49d3ca476b17867c91962805c
parentfeba93770920f91760d6390541221b75ba5c95f3
PowerPC gold, fix 32-bit branch address arithmetic

Mixing 64-bit and 32-bit types led to the wrong promotions.  Keep
calculation in same type.  Also fix a case where PLTREL24 reloc addend
should be ignored.

* Powerpc.cc (Target_powerpc::Branch_info::make_stub): Ignore
addend of PLTREL24 reloc when not generating a plt stub.  Make
max_branch_offset an "Address".
(Target_powerpc::Relocate::relocate): Make max_branch_offset
an "Address".
gold/ChangeLog
gold/powerpc.cc