diff options
Diffstat (limited to 'gold')
-rw-r--r-- | gold/ChangeLog | 4 | ||||
-rw-r--r-- | gold/powerpc.cc | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index c0b7e56..ae50474 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,7 @@ +2016-02-04 Alan Modra <amodra@gmail.com> + + * powerpc.cc (relocate): Adjust last patch for big-endian. + 2016-02-02 Alan Modra <amodra@gmail.com> * powerpc.cc (relocate): Further restrict ELFv2 entry optimization. diff --git a/gold/powerpc.cc b/gold/powerpc.cc index 6df2904..60530ba 100644 --- a/gold/powerpc.cc +++ b/gold/powerpc.cc @@ -7727,7 +7727,7 @@ Target_powerpc<size, big_endian>::Relocate::relocate( && preloc != NULL && target->abiversion() >= 2 && !parameters->options().output_is_position_independent() - && rela.get_r_addend() == 4 + && rela.get_r_addend() == d_offset + 4 && gsym != NULL && strcmp(gsym->name(), ".TOC.") == 0) { |