diff options
author | George Rimar <grimar@accesssoftek.com> | 2018-02-21 11:56:55 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2018-02-21 11:56:55 +0000 |
commit | db7c630b01e7c867a8d945e70f2d9425b25b52b0 (patch) | |
tree | bf12ea2f12f4bf37e93f474ce7eff254e620914a /lld/test/ELF/linkerscript/implicit-program-header.s | |
parent | 7b1a950c4af4edbcf51b6b497603173dc4d06ec7 (diff) | |
download | bcm5719-llvm-db7c630b01e7c867a8d945e70f2d9425b25b52b0.tar.gz bcm5719-llvm-db7c630b01e7c867a8d945e70f2d9425b25b52b0.zip |
[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.
llvm-svn: 325673
Diffstat (limited to 'lld/test/ELF/linkerscript/implicit-program-header.s')
-rw-r--r-- | lld/test/ELF/linkerscript/implicit-program-header.s | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lld/test/ELF/linkerscript/implicit-program-header.s b/lld/test/ELF/linkerscript/implicit-program-header.s index 95cdf142fe4..36379a9cf6c 100644 --- a/lld/test/ELF/linkerscript/implicit-program-header.s +++ b/lld/test/ELF/linkerscript/implicit-program-header.s @@ -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 |