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

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 22 14:27:40 PDT 2024


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

> Do we need any checks to go along with the new sections?

if you mean `.text.foo`, perhaps we should remove that part of this test since it's obsoleted by the other part

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


More information about the llvm-commits mailing list