aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp
diff options
context:
space:
mode:
authorFeng Zou <feng.zou@intel.com>2024-11-27 09:31:12 +0800
committerGitHub <noreply@github.com>2024-11-27 09:31:12 +0800
commitfad5ed6e908aafe03e47032611a6e836bbcc4d5a (patch)
tree69baa1cc2ff8324d9600763f055fde056d8e58ae /llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp
parent73d1abb018fdd60664b49c3418572c2e04e18d41 (diff)
downloadllvm-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/ObjectYAML/CodeViewYAMLDebugSections.cpp')
0 files changed, 0 insertions, 0 deletions