[PATCH] D91611: [PowerPC][LLD] Detecting and fixing missing TLS relocation on __tls_get_addr

Stefan Pintilie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 30 06:21:10 PST 2020


stefanp updated this revision to Diff 308352.
stefanp added a comment.

Completely changed the way that the patch works.

Added a new option to the patch --fix-ppc64-tls-reloc
The option is off by default.
If the option is off then LLD behaves the way it has in the past.
If the option is on then LLD on PPC64 will check all calls to __tls_get_addr. If
any of those calls are missing a relocation then TLS relaxation is turned off.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91611/new/

https://reviews.llvm.org/D91611

Files:
  lld/ELF/Config.h
  lld/ELF/Driver.cpp
  lld/ELF/InputFiles.h
  lld/ELF/InputSection.cpp
  lld/ELF/Options.td
  lld/ELF/Relocations.cpp
  lld/test/ELF/ppc64-call-tls-get-addr-exec.s
  lld/test/ELF/ppc64-call-tls-get-addr-missing.s
  lld/test/ELF/ppc64-call-tls-get-addr.s
  lld/test/ELF/ppc64-tls-add-missing-gdld.s
  lld/test/ELF/ppc64-tls-missing-gdld.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91611.308352.patch
Type: text/x-patch
Size: 11650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201130/8684f9aa/attachment.bin>


More information about the llvm-commits mailing list