[lld] 912f5f7 - [ELF][test] Add an input section description test with "()" in the filename

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri May 13 12:02:18 PDT 2022


Author: Fangrui Song
Date: 2022-05-13T12:02:14-07:00
New Revision: 912f5f7183f28c5f3d0f4d2fe6a03bb5e5529474

URL: https://github.com/llvm/llvm-project/commit/912f5f7183f28c5f3d0f4d2fe6a03bb5e5529474
DIFF: https://github.com/llvm/llvm-project/commit/912f5f7183f28c5f3d0f4d2fe6a03bb5e5529474.diff

LOG: [ELF][test] Add an input section description test with "()" in the filename

Added: 
    

Modified: 
    lld/test/ELF/linkerscript/filename-spec.s

Removed: 
    


################################################################################
diff  --git a/lld/test/ELF/linkerscript/filename-spec.s b/lld/test/ELF/linkerscript/filename-spec.s
index 25f899eec03e..4fc4f2f42175 100644
--- a/lld/test/ELF/linkerscript/filename-spec.s
+++ b/lld/test/ELF/linkerscript/filename-spec.s
@@ -66,6 +66,12 @@
 # RUN:   dir1/lib1.a dir2/lib2.a
 # RUN: llvm-objdump -s 10 | FileCheck --check-prefix=SECONDFIRST %s
 
+## () can appear in a quoted filename pattern.
+# RUN: cp dir1/lib1.a 'lib1().a'
+# RUN: echo 'SECTIONS{.foo :{ KEEP(*dir2*(.foo)) KEEP("lib1().a"(.foo)) }}' > 11.t
+# RUN: ld.lld -o 11 -T 11.t --whole-archive 'lib1().a' dir2/lib2.a
+# RUN: llvm-objdump -s 11 | FileCheck --check-prefix=SECONDFIRST %s
+
 #--- tx.s
 .global _start
 _start:


        


More information about the llvm-commits mailing list