[llvm] [X86][MC] Add R_X86_64_CODE_6_GOTTPOFF (PR #117277)
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 21 19:51:40 PST 2024
================
@@ -670,6 +672,11 @@ void X86MCCodeEmitter::emitMemModRMByte(
return Kind == REX2 ? X86::reloc_riprel_4byte_relax_rex2
: Kind == REX ? X86::reloc_riprel_4byte_relax_rex
: X86::reloc_riprel_4byte_relax;
+ case X86::ADD64rm_ND:
+ case X86::ADD64mr_ND:
+ case X86::ADD64mr_NF_ND:
+ case X86::ADD64rm_NF_ND:
+ return X86::reloc_riprel_6byte_relax;
----------------
KanRobert wrote:
You need to consider `ADD64rm_NF` too.
https://github.com/llvm/llvm-project/pull/117277
More information about the llvm-commits
mailing list