[lld] r249024 - ELF2: Linker scripts can refer other linker scripts. Test that.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 1 08:45:41 PDT 2015
Author: ruiu
Date: Thu Oct 1 10:45:41 2015
New Revision: 249024
URL: http://llvm.org/viewvc/llvm-project?rev=249024&view=rev
Log:
ELF2: Linker scripts can refer other linker scripts. Test that.
This did not work before r249023.
Modified:
lld/trunk/test/elf2/linkerscript.s
Modified: lld/trunk/test/elf2/linkerscript.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf2/linkerscript.s?rev=249024&r1=249023&r2=249024&view=diff
==============================================================================
--- lld/trunk/test/elf2/linkerscript.s (original)
+++ lld/trunk/test/elf2/linkerscript.s Thu Oct 1 10:45:41 2015
@@ -5,6 +5,11 @@
# RUN: lld -flavor gnu2 -o %t2 %t.script
# RUN: llvm-readobj %t2 > /dev/null
+# RUN: echo "GROUP(" %t.script2 ")" > %t.script1
+# RUN: echo "GROUP(" %t ")" > %t.script2
+# RUN: lld -flavor gnu2 -o %t2 %t.script1
+# RUN: llvm-readobj %t2 > /dev/null
+
# RUN: echo "OUTPUT_FORMAT(\"elf64-x86-64\") /*/*/ GROUP(" %t ")" > %t.script
# RUN: lld -flavor gnu2 -o %t2 %t.script
# RUN: llvm-readobj %t2 > /dev/null
More information about the llvm-commits
mailing list