forked from OSchip/llvm-project
[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
This commit is contained in:
parent
7b1a950c4a
commit
db7c630b01
|
@ -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
|
||||
}
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue