[llvm] [Test][JitLink] Correctly generate the R_X86_64_PC8 relocation. (PR #109283)

Xing Guo via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 21 23:09:03 PDT 2024


================
@@ -10,10 +10,4 @@
 main:
 	xorl	%eax, %eax
 	retq
-	.size	main, .-main
-
-	.type	P, at object
----------------
higuoxing wrote:

Thanks for the suggestion! I fixed it by emitting a byte `main - .` to the `.rodata` section.

https://github.com/llvm/llvm-project/pull/109283


More information about the llvm-commits mailing list