[lld] 65c284a - [ELF][test][NFC] Make a test standard compliant

Igor Kudrin via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 4 21:40:41 PDT 2021


Author: Igor Kudrin
Date: 2021-10-05T11:40:02+07:00
New Revision: 65c284a7be0311f62873be9eecdff120de12e094

URL: https://github.com/llvm/llvm-project/commit/65c284a7be0311f62873be9eecdff120de12e094
DIFF: https://github.com/llvm/llvm-project/commit/65c284a7be0311f62873be9eecdff120de12e094.diff

LOG: [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

Added: 
    

Modified: 
    lld/test/ELF/linkerscript/implicit-program-header.test

Removed: 
    


################################################################################
diff  --git a/lld/test/ELF/linkerscript/implicit-program-header.test b/lld/test/ELF/linkerscript/implicit-program-header.test
index d42e52532269e..2e46b3d32153e 100644
--- a/lld/test/ELF/linkerscript/implicit-program-header.test
+++ b/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 @@ PHDRS {
 }
 
 SECTIONS {
+  .text : { *(.text) } : ph_write
   .bar : { *(.bar) } : ph_exec : ph_note
   .foo : { *(.foo) }
-  .text : { *(.text) } : ph_write
 }


        


More information about the llvm-commits mailing list