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.
This commit is contained in:
Alan Modra
2016-02-04 00:25:56 +10:30
parent 94986c2885
commit 4f038ee5d2
4 changed files with 11 additions and 2 deletions

View File

@@ -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)
{