[lld] [LLD][ELF] Support OVERLAY symbol assignments (PR #159895)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 20 10:41:33 PDT 2025


================
@@ -0,0 +1,32 @@
+# REQUIRES: x86
+# RUN: echo 'nop; .section .small, "a"; .long 0; .section .big1, "a"; .quad 1; .section .big2, "a"; .quad 2;' \
----------------
MaskRay wrote:

Use `RUN: rm -rf %t && split-file %s %t && cd %t` pattern to prepare the input assembly file.
You can use `#--- a.s` for assembly and `#--- 1.lds` for the linker script.

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


More information about the llvm-commits mailing list