* elf64-ppc.c (ppc64_elf_relocate_section): Nop out optimized
TPREL16_HI and TPREL16_HA insns.
This commit is contained in:
parent
fd63344e35
commit
9d6ded02f6
|
@ -1,3 +1,8 @@
|
|||
2010-03-31 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* elf64-ppc.c (ppc64_elf_relocate_section): Nop out optimized
|
||||
TPREL16_HI and TPREL16_HA insns.
|
||||
|
||||
2010-03-31 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
PR ld/11458
|
||||
|
|
|
@ -11569,6 +11569,18 @@ ppc64_elf_relocate_section (bfd *output_bfd,
|
|||
}
|
||||
break;
|
||||
|
||||
case R_PPC64_GOT_TPREL16_HI:
|
||||
case R_PPC64_GOT_TPREL16_HA:
|
||||
if (tls_mask != 0
|
||||
&& (tls_mask & TLS_TPREL) == 0)
|
||||
{
|
||||
rel->r_offset -= d_offset;
|
||||
bfd_put_32 (output_bfd, NOP, contents + rel->r_offset);
|
||||
r_type = R_PPC64_NONE;
|
||||
rel->r_info = ELF64_R_INFO (r_symndx, r_type);
|
||||
}
|
||||
break;
|
||||
|
||||
case R_PPC64_GOT_TPREL16_DS:
|
||||
case R_PPC64_GOT_TPREL16_LO_DS:
|
||||
if (tls_mask != 0
|
||||
|
|
Loading…
Reference in New Issue