[PATCH] D70398: [lld] Support copy relocations for TLS symbols

James Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 18 08:00:17 PST 2019


jrtc27 created this revision.
jrtc27 added a reviewer: ruiu.
Herald added subscribers: llvm-commits, apazos, sameer.abuasal, pzheng, s.egerton, lenary, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, MaskRay, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

Previously, if Local Exec was used to access a symbol not in the
executable, we would error with "symol '<sym>' has no type". Instead, we
should emit a copy relocation using .tbss.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70398

Files:
  lld/ELF/Relocations.cpp
  lld/ELF/SyntheticSections.cpp
  lld/ELF/SyntheticSections.h
  lld/ELF/Writer.cpp
  lld/test/ELF/linkerscript/orphan-report.s
  lld/test/ELF/riscv-tls-le-copy.s
  lld/test/ELF/shared.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70398.229849.patch
Type: text/x-patch
Size: 8112 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191118/0f69d0bd/attachment.bin>


More information about the llvm-commits mailing list