diff options
| author | Fangrui Song <maskray@google.com> | 2019-05-23 01:05:13 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-05-23 01:05:13 +0000 |
| commit | 86c9ca48c322543798ba2415f0e7fe6b93c4f6a0 (patch) | |
| tree | 0b06e53cedc7c58b349d8ba632fb4fcee9988121 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | eac9a7830b6b8442762a89f1439f14a0311b6648 (diff) | |
[X86] Support -fno-plt __tls_get_addr calls
In general dynamic/local dynamic TLS models, with -fno-plt,
* x86: emit `calll *___tls_get_addr@GOT(%ebx)` instead of `calll ___tls_get_addr@PLT`
Note, on x86, if we can get rid of %ebx as the PIC register,
it may be better to use a register not preserved across function calls.
* x86_64: emit `callq *__tls_get_addr@GOTPCREL(%rip)` instead of `callq __tls_get_addr@PLT`
Reorganize the code by separating 32-bit and 64-bit.
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D62106
llvm-svn: 361453
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
