implement x64 elf relocations

This commit is contained in:
LukeFZ
2026-02-08 04:33:57 +01:00
parent e342389b75
commit 584f0be399
2 changed files with 7 additions and 0 deletions

View File

@@ -354,6 +354,10 @@ namespace Il2CppInspector
(Elf.R_AMD64_64, Elf.EM_AARCH64) => (conv.Add(symValue, addend), true), // S + A
(Elf.R_AMD64_64, Elf.EM_X86_64) => (conv.Add(symValue, addend), true), // S + A
(Elf.R_X86_64_RELATIVE, Elf.EM_X86_64) => (addend, true), // S + A
(Elf.R_X86_64_RELATIVE64, Elf.EM_X86_64) => (addend, true), // S + A
_ => (default(TWord), false)
};

View File

@@ -106,6 +106,9 @@ namespace Il2CppInspector
R_386_GLOB_DAT = 6,
R_386_JMP_SLOT = 7,
R_X86_64_RELATIVE = 8,
R_X86_64_RELATIVE64 = 38,
R_AMD64_64 = 1
}