[llvm] 38666e6 - [Test][JITLink] Correctly generate the R_X86_64_PC8 relocation. (#109283)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 22 05:19:18 PDT 2024
Author: Xing Guo
Date: 2024-09-22T20:19:15+08:00
New Revision: 38666e651587a5ca1b1290595c83d48d19914c42
URL: https://github.com/llvm/llvm-project/commit/38666e651587a5ca1b1290595c83d48d19914c42
DIFF: https://github.com/llvm/llvm-project/commit/38666e651587a5ca1b1290595c83d48d19914c42.diff
LOG: [Test][JITLink] Correctly generate the R_X86_64_PC8 relocation. (#109283)
Previously, ELF_R_X86_64_PC8.s doesn't produce the R_X86_64_PC8
relocation. This patch helps fix it by emitting a byte `main - .` to the
.rodata section.
Added:
Modified:
llvm/test/ExecutionEngine/JITLink/x86-64/ELF_R_X86_64_PC8.s
Removed:
################################################################################
diff --git a/llvm/test/ExecutionEngine/JITLink/x86-64/ELF_R_X86_64_PC8.s b/llvm/test/ExecutionEngine/JITLink/x86-64/ELF_R_X86_64_PC8.s
index cac6dd9c612b6f..46b851a836abb8 100644
--- a/llvm/test/ExecutionEngine/JITLink/x86-64/ELF_R_X86_64_PC8.s
+++ b/llvm/test/ExecutionEngine/JITLink/x86-64/ELF_R_X86_64_PC8.s
@@ -12,8 +12,5 @@ main:
retq
.size main, .-main
- .type P, at object
- .globl P
-P:
- .byte main-. # Generate R_X86_64_PC8 relocation.
- .size P, .-P
+ .rodata
+ .byte main-. # Generate R_X86_64_PC8 relocation.
More information about the llvm-commits
mailing list