[lld] [LLD] Allow all output-section-commands in OVERLAYS. (PR #203524)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 12 23:02:42 PDT 2026


================
@@ -0,0 +1,49 @@
+# REQUIRES: x86
+# RUN: rm -rf %t && split-file %s %t && cd %t
+# RUN: llvm-mc -filetype=obj -triple=x86_64 a.s -o a.o
+# RUN: ld.lld a.o --script overlay.lds -o a
+# RUN: llvm-readelf --symbols a | FileCheck %s
+
+CHECK:      {{[0-9]+}}: 0000000000001000     0 NOTYPE  GLOBAL DEFAULT     2 __data_start
----------------
MaskRay wrote:

`{{[0-9]+}}` => `[[#]]` . Or just omit it since we are not using --match-full-lines

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


More information about the llvm-commits mailing list