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 /gold/ChangeLog | |
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 'gold/ChangeLog')
-rw-r--r-- | gold/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index 8ab8387..503198e 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,5 +1,13 @@ 2014-12-04 Alan Modra <amodra@gmail.com> + * 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. + +2014-12-04 Alan Modra <amodra@gmail.com> + PR 17670 * symtab.cc (Symbol::set_undefined): Remove assertion. * powerpc.cc (Target_powerpc::symval_for_branch): Don't assert |