[llvm] [X86][MC] Support R_X86_64_CODE_4_GOTPC32_TLSDESC (PR #116908)
Feng Zou via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 21 04:23:21 PST 2024
================
@@ -666,6 +666,7 @@ void X86MCCodeEmitter::emitMemModRMByte(
case X86::SBB64rm:
case X86::SUB64rm:
case X86::XOR64rm:
+ case X86::LEA64r:
----------------
fzou1 wrote:
It's not special to REX2. Here we need to distinguish REX2 prefix and others and set corresponding relocation type (R_X86_64_CODE_4_GOTPC32_TLSDESC) if it's REX2 prefix. For REX prefix, we didn't have to distinguish it and others in the past.
https://github.com/llvm/llvm-project/pull/116908
More information about the llvm-commits
mailing list