[lld] r325673 - [ELF] - Simplify testcase. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 21 03:56:55 PST 2018
Author: grimar
Date: Wed Feb 21 03:56:55 2018
New Revision: 325673
URL: http://llvm.org/viewvc/llvm-project?rev=325673&view=rev
Log:
[ELF] - Simplify testcase. NFC.
This removes script input file and inlines script into
testcase body. That is consistent with othet LS tests
and makes testcase easier to read.
Removed:
lld/trunk/test/ELF/linkerscript/Inputs/implicit-program-header.script
Modified:
lld/trunk/test/ELF/linkerscript/implicit-program-header.s
Removed: lld/trunk/test/ELF/linkerscript/Inputs/implicit-program-header.script
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/Inputs/implicit-program-header.script?rev=325672&view=auto
==============================================================================
--- lld/trunk/test/ELF/linkerscript/Inputs/implicit-program-header.script (original)
+++ lld/trunk/test/ELF/linkerscript/Inputs/implicit-program-header.script (removed)
@@ -1,12 +0,0 @@
-PHDRS
-{
- ph_write PT_LOAD FLAGS(2);
- ph_exec PT_LOAD FLAGS(1);
-}
-
-SECTIONS
-{
- .bar : { *(.bar) } : ph_exec
- .foo : { *(.foo) }
- .text : { *(.text) } : ph_write
-}
Modified: lld/trunk/test/ELF/linkerscript/implicit-program-header.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/implicit-program-header.s?rev=325673&r1=325672&r2=325673&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/implicit-program-header.s (original)
+++ lld/trunk/test/ELF/linkerscript/implicit-program-header.s Wed Feb 21 03:56:55 2018
@@ -1,6 +1,15 @@
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-# RUN: ld.lld --hash-style=sysv -o %t1 --script %S/Inputs/implicit-program-header.script \
+# RUN: echo "PHDRS { \
+# RUN: ph_write PT_LOAD FLAGS(2); \
+# RUN: ph_exec PT_LOAD FLAGS(1); \
+# RUN: } \
+# RUN: SECTIONS { \
+# RUN: .bar : { *(.bar) } : ph_exec \
+# RUN: .foo : { *(.foo) } \
+# RUN: .text : { *(.text) } : ph_write \
+# RUN: }" > %t.script
+# RUN: ld.lld --hash-style=sysv -o %t1 --script %t.script \
# RUN: %t.o -shared
# RUN: llvm-readobj -elf-output-style=GNU -l %t1 | FileCheck %s
More information about the llvm-commits
mailing list