[PATCH] D18960: [lld] Initial implementation of TLSDESC relocation handling
Adhemerval Zanella via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 11 05:39:50 PDT 2016
zatrazz created this revision.
zatrazz added reviewers: ruiu, rafael.
zatrazz added subscribers: llvm-commits, lld.
zatrazz set the repository for this revision to rL LLVM.
zatrazz added a project: lld.
Herald added a subscriber: aemerson.
This patch implements the initial lld support for TLSDESC relocation
types. They have lazy relocation nature, so require entries in got.plt.
Each one is double sized. Also special Plt entry with resolver is created in
addition to single got entry. A module that uses lazy TLSDESC relocations
must define next two entries in dynamic section:
* DT_TLSDESC_PLT - Location of PLT entry for TLS descriptor resolver calls.
* DT_TLSDESC_GOT - Location of GOT entry used by TLS descriptor resolver PLT entry.
More information can be found in "Thread-Local Storage Descriptors for IA32 and
AMD64/EM64T" and "Thread-Local Storage Descriptors for the ARM platform"
(http://www.fsfla.org/~lxoliva/writeups/TLS/RFC-TLSDESC-x86.txt,
http://www.fsfla.org/~lxoliva/writeups/TLS/RFC-TLSDESC-ARM.txt)
Repository:
rL LLVM
http://reviews.llvm.org/D18960
Files:
ELF/InputSection.cpp
ELF/OutputSections.cpp
ELF/OutputSections.h
ELF/Symbols.cpp
ELF/Symbols.h
ELF/Target.cpp
ELF/Target.h
ELF/Writer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18960.53226.patch
Type: text/x-patch
Size: 18673 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160411/0c8ad9f5/attachment.bin>
More information about the llvm-commits
mailing list