[lld] [lld/ELF][X86] Respect outSecOff when checking if GOTPCREL can be relaxed (PR #86334)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 23 14:24:26 PDT 2024
================
@@ -47,6 +50,13 @@ SECTIONS {
data 0x80200000 : { *(data) }
}
#--- lds2
+SECTIONS {
+ .text.foo 0x100000 : { *(.text.foo) }
----------------
MaskRay wrote:
The lds2 test does fail if `. += 0x1000` below is removed or `outSecOff` from code is removed. So the test seems fine to me.
https://github.com/llvm/llvm-project/pull/86334
More information about the llvm-commits
mailing list