summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/sort.s
diff options
context:
space:
mode:
Diffstat (limited to 'lld/test/ELF/linkerscript/sort.s')
-rw-r--r--lld/test/ELF/linkerscript/sort.s58
1 files changed, 29 insertions, 29 deletions
diff --git a/lld/test/ELF/linkerscript/sort.s b/lld/test/ELF/linkerscript/sort.s
index 3886d849127..34bdc2fd88d 100644
--- a/lld/test/ELF/linkerscript/sort.s
+++ b/lld/test/ELF/linkerscript/sort.s
@@ -7,26 +7,26 @@
# RUN: ld.lld -o %t1 --script %t1.script %t2.o %t1.o
# RUN: llvm-objdump -s %t1 | FileCheck -check-prefix=UNSORTED %s
# UNSORTED: Contents of section .aaa:
-# UNSORTED-NEXT: 0120 55000000 00000000 00000000 00000000
-# UNSORTED-NEXT: 0130 00000000 00000000 00000000 00000000
-# UNSORTED-NEXT: 0140 11000000 00000000 33000000 00000000
-# UNSORTED-NEXT: 0150 22000000 00000000 44000000 00000000
-# UNSORTED-NEXT: 0160 05000000 00000000 01000000 00000000
-# UNSORTED-NEXT: 0170 03000000 00000000 02000000 00000000
-# UNSORTED-NEXT: 0180 04000000 00000000
+# UNSORTED-NEXT: 55000000 00000000 00000000 00000000
+# UNSORTED-NEXT: 00000000 00000000 00000000 00000000
+# UNSORTED-NEXT: 11000000 00000000 33000000 00000000
+# UNSORTED-NEXT: 22000000 00000000 44000000 00000000
+# UNSORTED-NEXT: 05000000 00000000 01000000 00000000
+# UNSORTED-NEXT: 03000000 00000000 02000000 00000000
+# UNSORTED-NEXT: 04000000 00000000
## Check that SORT works (sorted by name of section).
# RUN: echo "SECTIONS { .aaa : { *(SORT(.aaa.*)) } }" > %t2.script
# RUN: ld.lld -o %t2 --script %t2.script %t2.o %t1.o
# RUN: llvm-objdump -s %t2 | FileCheck -check-prefix=SORTED_A %s
# SORTED_A: Contents of section .aaa:
-# SORTED_A-NEXT: 0120 11000000 00000000 01000000 00000000
-# SORTED_A-NEXT: 0130 22000000 00000000 02000000 00000000
-# SORTED_A-NEXT: 0140 33000000 00000000 03000000 00000000
-# SORTED_A-NEXT: 0150 44000000 00000000 00000000 00000000
-# SORTED_A-NEXT: 0160 04000000 00000000 55000000 00000000
-# SORTED_A-NEXT: 0170 00000000 00000000 00000000 00000000
-# SORTED_A-NEXT: 0180 05000000 00000000
+# SORTED_A-NEXT: 11000000 00000000 01000000 00000000
+# SORTED_A-NEXT: 22000000 00000000 02000000 00000000
+# SORTED_A-NEXT: 33000000 00000000 03000000 00000000
+# SORTED_A-NEXT: 44000000 00000000 00000000 00000000
+# SORTED_A-NEXT: 04000000 00000000 55000000 00000000
+# SORTED_A-NEXT: 00000000 00000000 00000000 00000000
+# SORTED_A-NEXT: 05000000 00000000
## When we switch the order of files, check that sorting by
## section names is stable.
@@ -34,13 +34,13 @@
# RUN: ld.lld -o %t3 --script %t3.script %t1.o %t2.o
# RUN: llvm-objdump -s %t3 | FileCheck -check-prefix=SORTED_B %s
# SORTED_B: Contents of section .aaa:
-# SORTED_B-NEXT: 0120 01000000 00000000 00000000 00000000
-# SORTED_B-NEXT: 0130 00000000 00000000 00000000 00000000
-# SORTED_B-NEXT: 0140 11000000 00000000 02000000 00000000
-# SORTED_B-NEXT: 0150 22000000 00000000 03000000 00000000
-# SORTED_B-NEXT: 0160 33000000 00000000 00000000 00000000
-# SORTED_B-NEXT: 0170 04000000 00000000 44000000 00000000
-# SORTED_B-NEXT: 0180 05000000 00000000 55000000 00000000
+# SORTED_B-NEXT: 01000000 00000000 00000000 00000000
+# SORTED_B-NEXT: 00000000 00000000 00000000 00000000
+# SORTED_B-NEXT: 11000000 00000000 02000000 00000000
+# SORTED_B-NEXT: 22000000 00000000 03000000 00000000
+# SORTED_B-NEXT: 33000000 00000000 00000000 00000000
+# SORTED_B-NEXT: 04000000 00000000 44000000 00000000
+# SORTED_B-NEXT: 05000000 00000000 55000000 00000000
## Check that SORT surrounded with KEEP also works.
# RUN: echo "SECTIONS { .aaa : { KEEP (*(SORT(.aaa.*))) } }" > %t3.script
@@ -57,14 +57,14 @@
# RUN: ld.lld -o %t5 --script %t5.script %t1.o %t2.o
# RUN: llvm-objdump -s %t5 | FileCheck -check-prefix=SORTED_ALIGNMENT %s
# SORTED_ALIGNMENT: Contents of section .aaa:
-# SORTED_ALIGNMENT-NEXT: 0120 05000000 00000000 00000000 00000000
-# SORTED_ALIGNMENT-NEXT: 0130 00000000 00000000 00000000 00000000
-# SORTED_ALIGNMENT-NEXT: 0140 11000000 00000000 00000000 00000000
-# SORTED_ALIGNMENT-NEXT: 0150 04000000 00000000 00000000 00000000
-# SORTED_ALIGNMENT-NEXT: 0160 22000000 00000000 03000000 00000000
-# SORTED_ALIGNMENT-NEXT: 0170 33000000 00000000 02000000 00000000
-# SORTED_ALIGNMENT-NEXT: 0180 44000000 00000000 01000000 00000000
-# SORTED_ALIGNMENT-NEXT: 0190 55000000 00000000
+# SORTED_ALIGNMENT-NEXT: 05000000 00000000 00000000 00000000
+# SORTED_ALIGNMENT-NEXT: 00000000 00000000 00000000 00000000
+# SORTED_ALIGNMENT-NEXT: 11000000 00000000 00000000 00000000
+# SORTED_ALIGNMENT-NEXT: 04000000 00000000 00000000 00000000
+# SORTED_ALIGNMENT-NEXT: 22000000 00000000 03000000 00000000
+# SORTED_ALIGNMENT-NEXT: 33000000 00000000 02000000 00000000
+# SORTED_ALIGNMENT-NEXT: 44000000 00000000 01000000 00000000
+# SORTED_ALIGNMENT-NEXT: 55000000 00000000
## SORT_NONE itself does not sort anything.
# RUN: echo "SECTIONS { .aaa : { *(SORT_NONE(.aaa.*)) } }" > %t6.script
OpenPOWER on IntegriCloud