[PATCH] D111068: [ELF][test][NFC] Make a test standard compliant
Igor Kudrin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 4 09:05:45 PDT 2021
ikudrin created this revision.
ikudrin added reviewers: MaskRay, grimar, jhenderson.
ikudrin added projects: LLVM, lld.
Herald added a subscriber: emaste.
ikudrin requested review of this revision.
`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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D111068
Files:
lld/test/ELF/linkerscript/implicit-program-header.test
Index: lld/test/ELF/linkerscript/implicit-program-header.test
===================================================================
--- lld/test/ELF/linkerscript/implicit-program-header.test
+++ lld/test/ELF/linkerscript/implicit-program-header.test
@@ -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 @@
}
SECTIONS {
+ .text : { *(.text) } : ph_write
.bar : { *(.bar) } : ph_exec : ph_note
.foo : { *(.foo) }
- .text : { *(.text) } : ph_write
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111068.376916.patch
Type: text/x-patch
Size: 809 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211004/21b61e31/attachment.bin>
More information about the llvm-commits
mailing list