forked from OSchip/llvm-project
[ELF][test][NFC] Make a test standard compliant
PT_LOAD segments in the program header must be sorted by their virtual addresses, so they should be defined in a similar order as the associated sections. Differential Revision: https://reviews.llvm.org/D111068
This commit is contained in:
parent
e66121b68e
commit
65c284a7be
|
@ -7,9 +7,9 @@
|
|||
# RUN: llvm-readelf -l %t1 | FileCheck %s
|
||||
|
||||
# CHECK: Segment Sections...
|
||||
# CHECK-NEXT: 00 .dynsym .hash .dynstr .foo .text .dynamic
|
||||
# CHECK-NEXT: 01 .foo
|
||||
# CHECK-NEXT: 02 .foo
|
||||
# CHECK-NEXT: 00 .dynsym .hash .dynstr .text
|
||||
# CHECK-NEXT: 01 .foo .dynamic
|
||||
# CHECK-NEXT: 02 .foo .dynamic
|
||||
|
||||
PHDRS {
|
||||
ph_write PT_LOAD FLAGS(2);
|
||||
|
@ -18,7 +18,7 @@ PHDRS {
|
|||
}
|
||||
|
||||
SECTIONS {
|
||||
.text : { *(.text) } : ph_write
|
||||
.bar : { *(.bar) } : ph_exec : ph_note
|
||||
.foo : { *(.foo) }
|
||||
.text : { *(.text) } : ph_write
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue