diff options
-rw-r--r-- | lld/test/ELF/linkerscript/Inputs/implicit-program-header.script | 12 | ||||
-rw-r--r-- | lld/test/ELF/linkerscript/implicit-program-header.s | 11 |
2 files changed, 10 insertions, 13 deletions
diff --git a/lld/test/ELF/linkerscript/Inputs/implicit-program-header.script b/lld/test/ELF/linkerscript/Inputs/implicit-program-header.script deleted file mode 100644 index 27dbea84c4e..00000000000 --- a/lld/test/ELF/linkerscript/Inputs/implicit-program-header.script +++ /dev/null @@ -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 -} 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 |