[PATCH] D62106: [X86] Support -fno-plt __tls_get_addr calls
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun May 19 02:11:37 PDT 2019
MaskRay created this revision.
MaskRay added reviewers: craig.topper, hans, rnk.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
MaskRay updated this revision to Diff 200174.
MaskRay edited the summary of this revision.
MaskRay added a comment.
Fix markdown in the description...
In general dynamic/local dynamic TLS models, with -fno-plt,
- x86: emit `calll *___tls_get_addr at GOT(%ebx)` instead of `calll ___tls_get_addr at PLT`
- x86_64: emit `callq *__tls_get_addr at GOTPCREL(%rip)` instead of `callq __tls_get_addr at PLT`
Reorganize the code by separating 32-bit and 64-bit.
Repository:
rL LLVM
https://reviews.llvm.org/D62106
Files:
lib/Target/X86/X86MCInstLower.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62106.200174.patch
Type: text/x-patch
Size: 6266 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190519/932b5c7b/attachment.bin>
More information about the llvm-commits
mailing list