[lld] [LLD][ELF] Reduce memory and file size of overlay thunk tests (PR #222565)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 16 22:50:10 PDT 2026


================
@@ -59,12 +59,12 @@ far:
 //--- overlay.ld
 
 SECTIONS {
-  OVERLAY 0x1000 : {
+  OVERLAY 0x1000 : AT(0x1000) {
     .text.over.01   { *(.text.over.01) }
     .text.over.02   { *(.text.over.02) }
   }
 	.text 0x2000 : { *(.text) }
-  OVERLAY 0x80000000 : {
+  OVERLAY 0x80000000 : AT(0x80000000) {
----------------
MaskRay wrote:

Thanks! This created a sparse file of 2.1GiB...

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


More information about the llvm-commits mailing list