projects
/
external
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix "PowerPC64 ELFv2 entry code" for big-endian
[external/binutils.git]
/
bfd
/
elf64-ppc.c
diff --git
a/bfd/elf64-ppc.c
b/bfd/elf64-ppc.c
index
369eae5
..
f0bcee1
100644
(file)
--- a/
bfd/elf64-ppc.c
+++ b/
bfd/elf64-ppc.c
@@
-13915,7
+13915,7
@@
ppc64_elf_relocate_section (bfd *output_bfd,
if (!bfd_link_pic (info)
&& !info->traditional_format
&& !htab->opd_abi
if (!bfd_link_pic (info)
&& !info->traditional_format
&& !htab->opd_abi
- && rel->r_addend ==
0
+ && rel->r_addend ==
d_offset
&& h != NULL && &h->elf == htab->elf.hgot
&& rel + 1 < relend
&& rel[1].r_info == ELF64_R_INFO (r_symndx, R_PPC64_REL16_LO)
&& h != NULL && &h->elf == htab->elf.hgot
&& rel + 1 < relend
&& rel[1].r_info == ELF64_R_INFO (r_symndx, R_PPC64_REL16_LO)