diff options
author | Alan Modra <amodra@gmail.com> | 2016-02-04 00:25:56 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-02-04 00:31:14 +1030 |
commit | 4f038ee5d22f04a16a413cf2e3d8ddeecdc75639 (patch) | |
tree | c19e16fa15c5da3df2cc341d7082080abb44e582 /gold/powerpc.cc | |
parent | 94986c28859066084e2e48ea6bf7f3c652cb8984 (diff) | |
download | fsf-binutils-gdb-4f038ee5d22f04a16a413cf2e3d8ddeecdc75639.zip fsf-binutils-gdb-4f038ee5d22f04a16a413cf2e3d8ddeecdc75639.tar.gz fsf-binutils-gdb-4f038ee5d22f04a16a413cf2e3d8ddeecdc75639.tar.bz2 |
Fix "PowerPC64 ELFv2 entry code" for big-endian
bfd/
* elf64-ppc.c (ppc64_elf_relocate_section): Adjust last patch
for big-endian.
gold/
* powerpc.cc (relocate): Adjust last patch for big-endian.
Diffstat (limited to 'gold/powerpc.cc')
-rw-r--r-- | gold/powerpc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |