summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript-sections.s
diff options
context:
space:
mode:
Diffstat (limited to 'lld/test/ELF/linkerscript-sections.s')
-rw-r--r--lld/test/ELF/linkerscript-sections.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/lld/test/ELF/linkerscript-sections.s b/lld/test/ELF/linkerscript-sections.s
index ea9ae2b2726..9471ccde682 100644
--- a/lld/test/ELF/linkerscript-sections.s
+++ b/lld/test/ELF/linkerscript-sections.s
@@ -38,6 +38,20 @@
# RUN: llvm-objdump -section-headers %t3 | \
# RUN: FileCheck -check-prefix=SEC-ORDER %s
+# The same test as above but with wildcard patterns.
+# RUN: echo "SECTIONS { \
+# RUN: .bss : { *(.bss) } \
+# RUN: other : { *(o*er) } \
+# RUN: .shstrtab : { *(.shstrt*) } \
+# RUN: .symtab : { *(.symtab) } \
+# RUN: .strtab : { *(.strtab) } \
+# RUN: .data : { *(*data) } \
+# RUN: .text : { *(.text) } }" > %t.script
+# RUN: cp %t %t.abc
+# RUN: ld.lld -o %t3 --script %t.script %t.abc
+# RUN: llvm-objdump -section-headers %t3 | \
+# RUN: FileCheck -check-prefix=SEC-ORDER %s
+
# Idx Name Size
# SEC-ORDER: 1 .bss 00000002 {{[0-9a-f]*}} BSS
# SEC-ORDER: 2 other 00000003 {{[0-9a-f]*}} DATA
OpenPOWER on IntegriCloud