[lld] [lld/ELF][X86] Respect outSecOff when checking if GOTPCREL can be relaxed (PR #86334)

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 22 14:54:11 PDT 2024


================
@@ -47,6 +50,13 @@ SECTIONS {
   data 0x80200000 : { *(data) }
 }
 #--- lds2
+SECTIONS {
+  .text.foo 0x100000 : { *(.text.foo) }
----------------
Artem-B wrote:

We've added new sections. Presumably it affects the output, but we're not checking for anything.
Basically, if we remove the added part, or if it has no intended effect, the test should start failing.

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


More information about the llvm-commits mailing list