diff options
| author | Feng Zou <feng.zou@intel.com> | 2024-11-27 09:31:12 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-27 09:31:12 +0800 |
| commit | fad5ed6e908aafe03e47032611a6e836bbcc4d5a (patch) | |
| tree | 69baa1cc2ff8324d9600763f055fde056d8e58ae /llvm/lib/Object/MachOObjectFile.cpp | |
| parent | 73d1abb018fdd60664b49c3418572c2e04e18d41 (diff) | |
| download | llvm-fad5ed6e908aafe03e47032611a6e836bbcc4d5a.zip llvm-fad5ed6e908aafe03e47032611a6e836bbcc4d5a.tar.gz llvm-fad5ed6e908aafe03e47032611a6e836bbcc4d5a.tar.bz2 | |
[X86][LLD] Handle R_X86_64_CODE_4_GOTPC32_TLSDESC relocation type (#116909)
For
lea name@tlsdesc(%rip), %reg
add
R_X86_64_CODE_4_GOTPC32_TLSDESC = 45
in #116908.
Linker can treat R_X86_64_CODE_4_GOTPC32_TLSDESC as
R_X86_64_GOTPC32_TLSDESC or convert the instruction above to
mov $name@tpoff, %reg
if the first byte of the instruction at the relocation offset - 4 is
0xd5 (namely, encoded w/REX2 prefix) when possible.
Binutils patch: https://github.com/bminor/binutils-gdb/commit/a533c8df598b5ef99c54a13e2b137c98b34b043c
Binutils mailthread: https://sourceware.org/pipermail/binutils/2023-December/131463.html
ABI discussion: https://groups.google.com/g/x86-64-abi/c/ACwD-UQXVDs/m/vrgTenKyFwAJ
Blog: https://kanrobert.github.io/rfc/All-about-APX-relocation
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions
