diff options
author | Alan Modra <amodra@gmail.com> | 2014-12-04 21:10:40 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-12-04 21:17:54 +1030 |
commit | cbcb23fa01027a7fe1be938d58ef8e7a60b5fb7e (patch) | |
tree | 38d9034618f627b69f3305d7fb740e7fd8eb5306 /gprof | |
parent | ba715d7fe49c8a59660fbd571b935b29eb7cfbdb (diff) | |
download | gdb-cbcb23fa01027a7fe1be938d58ef8e7a60b5fb7e.zip gdb-cbcb23fa01027a7fe1be938d58ef8e7a60b5fb7e.tar.gz gdb-cbcb23fa01027a7fe1be938d58ef8e7a60b5fb7e.tar.bz2 |
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 PLTREL25 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".
(Stub_table::can_read_stub): Make max_branch_offset an "Address".
(Target_powerpc::Relocate::relocate): Likewise.
Diffstat (limited to 'gprof')
0 files changed, 0 insertions, 0 deletions