]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[PowerPC64] Nop out ld 2,24(1) after old-style __tls_get_addr
authorAlan Modra <amodra@gmail.com>
Mon, 31 Dec 2018 01:41:42 +0000 (12:11 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 31 Dec 2018 01:42:38 +0000 (12:12 +1030)
commitc96e057398b599a343cdff68325251346b71594e
treed1eb02d6fafb827cebce39da7764d6279b26393d
parent17c885c61819650bc00790988e46d3d1d8801691
[PowerPC64] Nop out ld 2,24(1) after old-style __tls_get_addr

When optimising inline plt calls to __tls_get_addr without tls marker
relocs, ld should zap any toc restore insn after the bctrl, to stop a
load-hit-store stall.

* elf64-ppc.c (ppc64_elf_relocate_section <tls_ldgd_opt>): When
editing an old-style __tls_get_addr call, replace a toc restore
insn with a nop.
bfd/ChangeLog
bfd/elf64-ppc.c