[llvm] [Test][JitLink] Correctly generate the R_X86_64_PC8 relocation. (PR #109283)
Maksim Panchenko via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 20 01:42:07 PDT 2024
================
@@ -10,10 +10,4 @@
main:
xorl %eax, %eax
retq
- .size main, .-main
-
- .type P, at object
----------------
maksfb wrote:
Thanks for spotting the issue and providing the fix. I'm not sure why `loope` would make `llvm-mc` emit relocation and `.byte main-.` would not. I suggest not to rely on the `loope` behavior and issue `.byte main-.` in a different section, e.g. `.rodata`. I.e. if you insert `.rodata` before `.globl P`, it will force `llvm-mc` to always emit a relocation.
https://github.com/llvm/llvm-project/pull/109283
More information about the llvm-commits
mailing list