From e28f663f71ff49a79b458f7c642906d13c5a0472 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 29 Apr 2015 13:55:07 +0000 Subject: [PATCH] Don't constrain the section order in tests that don't depend on it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236102 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/ARM/arm-elf-symver.s | 16 +++---- .../eh-directive-text-section-multiple-func.s | 4 +- test/MC/ARM/elf-movt.s | 4 +- test/MC/ARM/elf-thumbfunc-reloc.s | 2 +- test/MC/ELF/align.s | 2 +- test/MC/ELF/cfi-adjust-cfa-offset.s | 10 ++--- test/MC/ELF/cfi-advance-loc2.s | 4 +- test/MC/ELF/cfi-def-cfa-offset.s | 12 +++--- test/MC/ELF/cfi-def-cfa-register.s | 4 +- test/MC/ELF/cfi-def-cfa.s | 4 +- test/MC/ELF/cfi-escape.s | 10 ++--- test/MC/ELF/cfi-offset.s | 4 +- test/MC/ELF/cfi-register.s | 10 ++--- test/MC/ELF/cfi-rel-offset.s | 10 ++--- test/MC/ELF/cfi-rel-offset2.s | 10 ++--- test/MC/ELF/cfi-remember.s | 10 ++--- test/MC/ELF/cfi-restore.s | 10 ++--- test/MC/ELF/cfi-same-value.s | 10 ++--- test/MC/ELF/cfi-undefined.s | 10 ++--- test/MC/ELF/cfi-window-save.s | 4 +- test/MC/ELF/cfi-zero-addr-delta.s | 4 +- test/MC/ELF/cfi.s | 12 +++--- test/MC/ELF/debug-loc.s | 4 +- test/MC/ELF/empty-dwarf-lines.s | 4 +- test/MC/ELF/entsize.s | 12 +++--- test/MC/ELF/file-double.s | 4 +- test/MC/ELF/file.s | 2 +- test/MC/ELF/lcomm.s | 4 +- test/MC/ELF/n_bytes.s | 4 +- test/MC/ELF/noexec.s | 6 +-- test/MC/ELF/norelocation.s | 25 ++--------- test/MC/ELF/pr19430.s | 2 +- test/MC/ELF/relocation-pc.s | 11 +---- test/MC/ELF/rename.s | 4 +- test/MC/ELF/section.s | 6 +-- test/MC/ELF/type-propagate.s | 20 ++++----- test/MC/ELF/type.s | 42 +++++++++---------- test/MC/ELF/weakref.s | 22 +++++----- 38 files changed, 156 insertions(+), 182 deletions(-) diff --git a/test/MC/ARM/arm-elf-symver.s b/test/MC/ARM/arm-elf-symver.s index 26d76556324..4303540e82a 100644 --- a/test/MC/ARM/arm-elf-symver.s +++ b/test/MC/ARM/arm-elf-symver.s @@ -39,7 +39,7 @@ global1: @ CHECK-NEXT: Binding: Local (0x0) @ CHECK-NEXT: Type: None (0x0) @ CHECK-NEXT: Other: 0 -@ CHECK-NEXT: Section: .text (0x1) +@ CHECK-NEXT: Section: .text @ CHECK-NEXT: } @ CHECK-NEXT: Symbol { @ CHECK-NEXT: Name: bar3@@zed @@ -48,7 +48,7 @@ global1: @ CHECK-NEXT: Binding: Local (0x0) @ CHECK-NEXT: Type: None (0x0) @ CHECK-NEXT: Other: 0 -@ CHECK-NEXT: Section: .text (0x1) +@ CHECK-NEXT: Section: .text @ CHECK-NEXT: } @ CHECK-NEXT: Symbol { @ CHECK-NEXT: Name: bar5@@zed @@ -57,7 +57,7 @@ global1: @ CHECK-NEXT: Binding: Local (0x0) @ CHECK-NEXT: Type: None (0x0) @ CHECK-NEXT: Other: 0 -@ CHECK-NEXT: Section: .text (0x1) +@ CHECK-NEXT: Section: .text @ CHECK-NEXT: } @ CHECK-NEXT: Symbol { @ CHECK-NEXT: Name: defined1 @@ -66,7 +66,7 @@ global1: @ CHECK-NEXT: Binding: Local (0x0) @ CHECK-NEXT: Type: None (0x0) @ CHECK-NEXT: Other: 0 -@ CHECK-NEXT: Section: .text (0x1) +@ CHECK-NEXT: Section: .text @ CHECK-NEXT: } @ CHECK-NEXT: Symbol { @ CHECK-NEXT: Name: defined2 @@ -75,7 +75,7 @@ global1: @ CHECK-NEXT: Binding: Local (0x0) @ CHECK-NEXT: Type: None (0x0) @ CHECK-NEXT: Other: 0 -@ CHECK-NEXT: Section: .text (0x1) +@ CHECK-NEXT: Section: .text @ CHECK-NEXT: } @ CHECK-NEXT: Symbol { @ CHECK-NEXT: Name: .text (0) @@ -84,7 +84,7 @@ global1: @ CHECK-NEXT: Binding: Local (0x0) @ CHECK-NEXT: Type: Section (0x3) @ CHECK-NEXT: Other: 0 -@ CHECK-NEXT: Section: .text (0x1) +@ CHECK-NEXT: Section: .text @ CHECK-NEXT: } @ CHECK-NEXT: Symbol { @ CHECK-NEXT: Name: .data (0) @@ -111,7 +111,7 @@ global1: @ CHECK-NEXT: Binding: Global (0x1) @ CHECK-NEXT: Type: None (0x0) @ CHECK-NEXT: Other: 0 -@ CHECK-NEXT: Section: .text (0x1) +@ CHECK-NEXT: Section: .text @ CHECK-NEXT: } @ CHECK-NEXT: Symbol { @ CHECK-NEXT: Name: global1 @@ -120,7 +120,7 @@ global1: @ CHECK-NEXT: Binding: Global (0x1) @ CHECK-NEXT: Type: None (0x0) @ CHECK-NEXT: Other: 0 -@ CHECK-NEXT: Section: .text (0x1) +@ CHECK-NEXT: Section: .text @ CHECK-NEXT: } @ CHECK-NEXT: Symbol { @ CHECK-NEXT: Name: bar2@zed diff --git a/test/MC/ARM/eh-directive-text-section-multiple-func.s b/test/MC/ARM/eh-directive-text-section-multiple-func.s index 50e09f5f11b..7ab401c5043 100644 --- a/test/MC/ARM/eh-directive-text-section-multiple-func.s +++ b/test/MC/ARM/eh-directive-text-section-multiple-func.s @@ -72,10 +72,10 @@ func2: @ CHECK: Symbols [ @ CHECK: Symbol { @ CHECK: Name: func1 -@ CHECK: Section: .text (0x1) +@ CHECK: Section: .text @ CHECK: } @ CHECK: Symbol { @ CHECK: Name: func2 -@ CHECK: Section: .text (0x1) +@ CHECK: Section: .text @ CHECK: } @ CHECK: ] diff --git a/test/MC/ARM/elf-movt.s b/test/MC/ARM/elf-movt.s index 1ff5da593b4..0fd77754795 100644 --- a/test/MC/ARM/elf-movt.s +++ b/test/MC/ARM/elf-movt.s @@ -44,8 +44,8 @@ barf: @ @barf @ OBJ-NEXT: Address: 0x0 @ OBJ-NEXT: Offset: @ OBJ-NEXT: Size: 16 -@ OBJ-NEXT: Link: 6 -@ OBJ-NEXT: Info: 1 +@ OBJ-NEXT: Link: +@ OBJ-NEXT: Info: @ OBJ-NEXT: AddressAlignment: 4 @ OBJ-NEXT: EntrySize: 8 @ OBJ-NEXT: Relocations [ diff --git a/test/MC/ARM/elf-thumbfunc-reloc.s b/test/MC/ARM/elf-thumbfunc-reloc.s index dd380c36226..70aa8c66b96 100644 --- a/test/MC/ARM/elf-thumbfunc-reloc.s +++ b/test/MC/ARM/elf-thumbfunc-reloc.s @@ -29,7 +29,7 @@ ptr: @@ make sure the relocation is with f. That is one way to make sure it includes @@ the thumb bit. -@CHECK-NEXT: Section (6) .rel.data.rel.local { +@CHECK-NEXT: Section ({{.*}}) .rel.data.rel.local { @CHECK-NEXT: 0x0 R_ARM_ABS32 f 0x0 @CHECK-NEXT: } @CHECK-NEXT: ] diff --git a/test/MC/ELF/align.s b/test/MC/ELF/align.s index 46be3df62f2..43f5b548d9e 100644 --- a/test/MC/ELF/align.s +++ b/test/MC/ELF/align.s @@ -23,7 +23,7 @@ // CHECK-NEXT: EntrySize: 0 // CHECK-NEXT: } // CHECK-NEXT: Section { -// CHECK-NEXT: Index: 4 +// CHECK-NEXT: Index: // CHECK-NEXT: Name: .rodata // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ diff --git a/test/MC/ELF/cfi-adjust-cfa-offset.s b/test/MC/ELF/cfi-adjust-cfa-offset.s index cf31fde17e9..398ad54fe75 100644 --- a/test/MC/ELF/cfi-adjust-cfa-offset.s +++ b/test/MC/ELF/cfi-adjust-cfa-offset.s @@ -22,8 +22,8 @@ f: .cfi_endproc // CHECK: Section { -// CHECK: Index: 4 -// CHECK-NEXT: Name: .eh_frame +// CHECK: Index: +// CHECK: Name: .eh_frame // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: SHF_ALLOC @@ -47,7 +47,7 @@ f: // CHECK-NEXT: ) // CHECK-NEXT: } // CHECK-NEXT: Section { -// CHECK-NEXT: Index: 5 +// CHECK-NEXT: Index: // CHECK-NEXT: Name: .rela.eh_frame // CHECK-NEXT: Type: SHT_RELA // CHECK-NEXT: Flags [ @@ -55,8 +55,8 @@ f: // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: // CHECK-NEXT: Size: 72 -// CHECK-NEXT: Link: 7 -// CHECK-NEXT: Info: 4 +// CHECK-NEXT: Link: +// CHECK-NEXT: Info: // CHECK-NEXT: AddressAlignment: 8 // CHECK-NEXT: EntrySize: 24 // CHECK-NEXT: Relocations [ diff --git a/test/MC/ELF/cfi-advance-loc2.s b/test/MC/ELF/cfi-advance-loc2.s index cba150ee0d1..13397920127 100644 --- a/test/MC/ELF/cfi-advance-loc2.s +++ b/test/MC/ELF/cfi-advance-loc2.s @@ -40,8 +40,8 @@ f: // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: // CHECK-NEXT: Size: 24 -// CHECK-NEXT: Link: 7 -// CHECK-NEXT: Info: 4 +// CHECK-NEXT: Link: +// CHECK-NEXT: Info: // CHECK-NEXT: AddressAlignment: 8 // CHECK-NEXT: EntrySize: 24 // CHECK-NEXT: Relocations [ diff --git a/test/MC/ELF/cfi-def-cfa-offset.s b/test/MC/ELF/cfi-def-cfa-offset.s index b83fcd0dfdb..3e4ca57a516 100644 --- a/test/MC/ELF/cfi-def-cfa-offset.s +++ b/test/MC/ELF/cfi-def-cfa-offset.s @@ -11,8 +11,8 @@ f: .cfi_endproc // CHECK: Section { -// CHECK: Index: 4 -// CHECK-NEXT: Name: .eh_frame +// CHECK: Index: +// CHECK: Name: .eh_frame // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: SHF_ALLOC @@ -34,16 +34,16 @@ f: // CHECK-NEXT: } // CHECK: Section { -// CHECK: Index: 5 -// CHECK-NEXT: Name: .rela.eh_frame +// CHECK: Index: +// CHECK: Name: .rela.eh_frame // CHECK-NEXT: Type: SHT_RELA // CHECK-NEXT: Flags [ // CHECK-NEXT: ] // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: // CHECK-NEXT: Size: 24 -// CHECK-NEXT: Link: 7 -// CHECK-NEXT: Info: 4 +// CHECK-NEXT: Link: +// CHECK-NEXT: Info: // CHECK-NEXT: AddressAlignment: 8 // CHECK-NEXT: EntrySize: 24 // CHECK-NEXT: Relocations [ diff --git a/test/MC/ELF/cfi-def-cfa-register.s b/test/MC/ELF/cfi-def-cfa-register.s index 53cec0cbb01..53174cb2f55 100644 --- a/test/MC/ELF/cfi-def-cfa-register.s +++ b/test/MC/ELF/cfi-def-cfa-register.s @@ -37,8 +37,8 @@ f: // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: // CHECK-NEXT: Size: 24 -// CHECK-NEXT: Link: 7 -// CHECK-NEXT: Info: 4 +// CHECK-NEXT: Link: +// CHECK-NEXT: Info: // CHECK-NEXT: AddressAlignment: 8 // CHECK-NEXT: EntrySize: 24 // CHECK-NEXT: Relocations [ diff --git a/test/MC/ELF/cfi-def-cfa.s b/test/MC/ELF/cfi-def-cfa.s index 110d4fdc1cf..9706c4da097 100644 --- a/test/MC/ELF/cfi-def-cfa.s +++ b/test/MC/ELF/cfi-def-cfa.s @@ -37,8 +37,8 @@ f: // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: // CHECK-NEXT: Size: 24 -// CHECK-NEXT: Link: 7 -// CHECK-NEXT: Info: 4 +// CHECK-NEXT: Link: +// CHECK-NEXT: Info: // CHECK-NEXT: AddressAlignment: 8 // CHECK-NEXT: EntrySize: 24 // CHECK-NEXT: Relocations [ diff --git a/test/MC/ELF/cfi-escape.s b/test/MC/ELF/cfi-escape.s index 4e4fce03e9a..e93d5f7be5f 100644 --- a/test/MC/ELF/cfi-escape.s +++ b/test/MC/ELF/cfi-escape.s @@ -8,8 +8,8 @@ f: .cfi_endproc // CHECK: Section { -// CHECK: Index: 4 -// CHECK-NEXT: Name: .eh_frame +// CHECK: Index: +// CHECK: Name: .eh_frame // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: SHF_ALLOC @@ -30,7 +30,7 @@ f: // CHECK-NEXT: ) // CHECK-NEXT: } // CHECK-NEXT: Section { -// CHECK-NEXT: Index: 5 +// CHECK-NEXT: Index: // CHECK-NEXT: Name: .rela.eh_frame // CHECK-NEXT: Type: SHT_RELA // CHECK-NEXT: Flags [ @@ -38,8 +38,8 @@ f: // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: // CHECK-NEXT: Size: 24 -// CHECK-NEXT: Link: 7 -// CHECK-NEXT: Info: 4 +// CHECK-NEXT: Link: +// CHECK-NEXT: Info: // CHECK-NEXT: AddressAlignment: 8 // CHECK-NEXT: EntrySize: 24 // CHECK-NEXT: Relocations [ diff --git a/test/MC/ELF/cfi-offset.s b/test/MC/ELF/cfi-offset.s index c9c18bcfbff..9038def03a6 100644 --- a/test/MC/ELF/cfi-offset.s +++ b/test/MC/ELF/cfi-offset.s @@ -37,8 +37,8 @@ f: // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: // CHECK-NEXT: Size: 24 -// CHECK-NEXT: Link: 7 -// CHECK-NEXT: Info: 4 +// CHECK-NEXT: Link: +// CHECK-NEXT: Info: // CHECK-NEXT: AddressAlignment: 8 // CHECK-NEXT: EntrySize: 24 // CHECK-NEXT: Relocations [ diff --git a/test/MC/ELF/cfi-register.s b/test/MC/ELF/cfi-register.s index c5c479179c4..be60e2ea2e8 100644 --- a/test/MC/ELF/cfi-register.s +++ b/test/MC/ELF/cfi-register.s @@ -8,8 +8,8 @@ f: .cfi_endproc // CHECK: Section { -// CHECK: Index: 4 -// CHECK-NEXT: Name: .eh_frame +// CHECK: Index: +// CHECK: Name: .eh_frame // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: SHF_ALLOC @@ -30,7 +30,7 @@ f: // CHECK-NEXT: ) // CHECK-NEXT: } // CHECK-NEXT: Section { -// CHECK-NEXT: Index: 5 +// CHECK-NEXT: Index: // CHECK-NEXT: Name: .rela.eh_frame // CHECK-NEXT: Type: SHT_RELA // CHECK-NEXT: Flags [ @@ -38,8 +38,8 @@ f: // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: // CHECK-NEXT: Size: 24 -// CHECK-NEXT: Link: 7 -// CHECK-NEXT: Info: 4 +// CHECK-NEXT: Link: +// CHECK-NEXT: Info: // CHECK-NEXT: AddressAlignment: 8 // CHECK-NEXT: EntrySize: 24 // CHECK-NEXT: Relocations [ diff --git a/test/MC/ELF/cfi-rel-offset.s b/test/MC/ELF/cfi-rel-offset.s index 4c74e22bb2f..892cda165ba 100644 --- a/test/MC/ELF/cfi-rel-offset.s +++ b/test/MC/ELF/cfi-rel-offset.s @@ -15,8 +15,8 @@ f: .cfi_endproc // CHECK: Section { -// CHECK: Index: 4 -// CHECK-NEXT: Name: .eh_frame +// CHECK: Index: +// CHECK: Name: .eh_frame // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: SHF_ALLOC @@ -38,7 +38,7 @@ f: // CHECK-NEXT: ) // CHECK-NEXT: } // CHECK-NEXT: Section { -// CHECK-NEXT: Index: 5 +// CHECK-NEXT: Index: // CHECK-NEXT: Name: .rela.eh_frame // CHECK-NEXT: Type: SHT_RELA // CHECK-NEXT: Flags [ @@ -46,8 +46,8 @@ f: // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: // CHECK-NEXT: Size: 24 -// CHECK-NEXT: Link: 7 -// CHECK-NEXT: Info: 4 +// CHECK-NEXT: Link: +// CHECK-NEXT: Info: // CHECK-NEXT: AddressAlignment: 8 // CHECK-NEXT: EntrySize: 24 // CHECK-NEXT: Relocations [ diff --git a/test/MC/ELF/cfi-rel-offset2.s b/test/MC/ELF/cfi-rel-offset2.s index 5827a31b37f..805b0b290bc 100644 --- a/test/MC/ELF/cfi-rel-offset2.s +++ b/test/MC/ELF/cfi-rel-offset2.s @@ -7,8 +7,8 @@ f: .cfi_endproc // CHECK: Section { -// CHECK: Index: 4 -// CHECK-NEXT: Name: .eh_frame +// CHECK: Index: +// CHECK: Name: .eh_frame // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: SHF_ALLOC @@ -29,7 +29,7 @@ f: // CHECK-NEXT: ) // CHECK-NEXT: } // CHECK-NEXT: Section { -// CHECK-NEXT: Index: 5 +// CHECK-NEXT: Index: // CHECK-NEXT: Name: .rela.eh_frame // CHECK-NEXT: Type: SHT_RELA // CHECK-NEXT: Flags [ @@ -37,8 +37,8 @@ f: // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: // CHECK-NEXT: Size: 24 -// CHECK-NEXT: Link: 7 -// CHECK-NEXT: Info: 4 +// CHECK-NEXT: Link: +// CHECK-NEXT: Info: // CHECK-NEXT: AddressAlignment: 8 // CHECK-NEXT: EntrySize: 24 // CHECK-NEXT: Relocations [ diff --git a/test/MC/ELF/cfi-remember.s b/test/MC/ELF/cfi-remember.s index c3ff8c386d5..ae112f59ebe 100644 --- a/test/MC/ELF/cfi-remember.s +++ b/test/MC/ELF/cfi-remember.s @@ -10,8 +10,8 @@ f: .cfi_endproc // CHECK: Section { -// CHECK: Index: 4 -// CHECK-NEXT: Name: .eh_frame +// CHECK: Index: +// CHECK: Name: .eh_frame // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: SHF_ALLOC @@ -32,7 +32,7 @@ f: // CHECK-NEXT: ) // CHECK-NEXT: } // CHECK: Section { -// CHECK: Index: 5 +// CHECK: Index: // CHECK-NEXT: Name: .rela.eh_frame // CHECK-NEXT: Type: SHT_RELA // CHECK-NEXT: Flags [ @@ -40,8 +40,8 @@ f: // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: // CHECK-NEXT: Size: 24 -// CHECK-NEXT: Link: 7 -// CHECK-NEXT: Info: 4 +// CHECK-NEXT: Link: +// CHECK-NEXT: Info: // CHECK-NEXT: AddressAlignment: 8 // CHECK-NEXT: EntrySize: 24 // CHECK-NEXT: Relocations [ diff --git a/test/MC/ELF/cfi-restore.s b/test/MC/ELF/cfi-restore.s index a1c2d7dce93..2bc87cf691a 100644 --- a/test/MC/ELF/cfi-restore.s +++ b/test/MC/ELF/cfi-restore.s @@ -8,8 +8,8 @@ f: .cfi_endproc // CHECK: Section { -// CHECK: Index: 4 -// CHECK-NEXT: Name: .eh_frame +// CHECK: Index: +// CHECK: Name: .eh_frame // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: SHF_ALLOC @@ -30,7 +30,7 @@ f: // CHECK-NEXT: ) // CHECK-NEXT: } // CHECK-NEXT: Section { -// CHECK-NEXT: Index: 5 +// CHECK-NEXT: Index: // CHECK-NEXT: Name: .rela.eh_frame // CHECK-NEXT: Type: SHT_RELA // CHECK-NEXT: Flags [ @@ -38,8 +38,8 @@ f: // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: // CHECK-NEXT: Size: 24 -// CHECK-NEXT: Link: 7 -// CHECK-NEXT: Info: 4 +// CHECK-NEXT: Link: +// CHECK-NEXT: Info: // CHECK-NEXT: AddressAlignment: 8 // CHECK-NEXT: EntrySize: 24 // CHECK-NEXT: Relocations [ diff --git a/test/MC/ELF/cfi-same-value.s b/test/MC/ELF/cfi-same-value.s index 5bf7f982d7c..7df4cbbb6dd 100644 --- a/test/MC/ELF/cfi-same-value.s +++ b/test/MC/ELF/cfi-same-value.s @@ -8,8 +8,8 @@ f: .cfi_endproc // CHECK: Section { -// CHECK: Index: 4 -// CHECK-NEXT: Name: .eh_frame +// CHECK: Index: +// CHECK: Name: .eh_frame // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: SHF_ALLOC @@ -30,7 +30,7 @@ f: // CHECK-NEXT: ) // CHECK-NEXT: } // CHECK-NEXT: Section { -// CHECK-NEXT: Index: 5 +// CHECK-NEXT: Index: // CHECK-NEXT: Name: .rela.eh_frame // CHECK-NEXT: Type: SHT_RELA // CHECK-NEXT: Flags [ @@ -38,8 +38,8 @@ f: // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: // CHECK-NEXT: Size: 24 -// CHECK-NEXT: Link: 7 -// CHECK-NEXT: Info: 4 +// CHECK-NEXT: Link: +// CHECK-NEXT: Info: // CHECK-NEXT: AddressAlignment: 8 // CHECK-NEXT: EntrySize: 24 // CHECK-NEXT: Relocations [ diff --git a/test/MC/ELF/cfi-undefined.s b/test/MC/ELF/cfi-undefined.s index 74505a4e36d..9a7012310ad 100644 --- a/test/MC/ELF/cfi-undefined.s +++ b/test/MC/ELF/cfi-undefined.s @@ -8,8 +8,8 @@ f: .cfi_endproc // CHECK: Section { -// CHECK: Index: 4 -// CHECK-NEXT: Name: .eh_frame +// CHECK: Index: +// CHECK: Name: .eh_frame // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: SHF_ALLOC @@ -30,7 +30,7 @@ f: // CHECK-NEXT: ) // CHECK-NEXT: } // CHECK-NEXT: Section { -// CHECK-NEXT: Index: 5 +// CHECK-NEXT: Index: // CHECK-NEXT: Name: .rela.eh_frame // CHECK-NEXT: Type: SHT_RELA // CHECK-NEXT: Flags [ @@ -38,8 +38,8 @@ f: // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: // CHECK-NEXT: Size: 24 -// CHECK-NEXT: Link: 7 -// CHECK-NEXT: Info: 4 +// CHECK-NEXT: Link: +// CHECK-NEXT: Info: // CHECK-NEXT: AddressAlignment: 8 // CHECK-NEXT: EntrySize: 24 // CHECK-NEXT: Relocations [ diff --git a/test/MC/ELF/cfi-window-save.s b/test/MC/ELF/cfi-window-save.s index e3850621b79..fb38ecd8560 100644 --- a/test/MC/ELF/cfi-window-save.s +++ b/test/MC/ELF/cfi-window-save.s @@ -40,8 +40,8 @@ f: // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: // CHECK-NEXT: Size: 24 -// CHECK-NEXT: Link: 7 -// CHECK-NEXT: Info: 4 +// CHECK-NEXT: Link: +// CHECK-NEXT: Info: // CHECK-NEXT: AddressAlignment: 8 // CHECK-NEXT: EntrySize: 24 // CHECK-NEXT: Relocations [ diff --git a/test/MC/ELF/cfi-zero-addr-delta.s b/test/MC/ELF/cfi-zero-addr-delta.s index 21d5380a22f..1e5c5e7e568 100644 --- a/test/MC/ELF/cfi-zero-addr-delta.s +++ b/test/MC/ELF/cfi-zero-addr-delta.s @@ -45,8 +45,8 @@ f: // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: // CHECK-NEXT: Size: 24 -// CHECK-NEXT: Link: 7 -// CHECK-NEXT: Info: 4 +// CHECK-NEXT: Link: +// CHECK-NEXT: Info: // CHECK-NEXT: AddressAlignment: 8 // CHECK-NEXT: EntrySize: 24 // CHECK-NEXT: Relocations [ diff --git a/test/MC/ELF/cfi.s b/test/MC/ELF/cfi.s index 4916ee91fdd..10587e03052 100644 --- a/test/MC/ELF/cfi.s +++ b/test/MC/ELF/cfi.s @@ -218,8 +218,8 @@ f37: .cfi_endproc // CHECK: Section { -// CHECK: Index: 4 -// CHECK-NEXT: Name: .eh_frame +// CHECK: Index: +// CHECK: Name: .eh_frame // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: SHF_ALLOC @@ -349,16 +349,16 @@ f37: // CHECK-NEXT: } // CHECK: Section { -// CHECK: Index: 5 -// CHECK-NEXT: Name: .rela.eh_frame +// CHECK: Index: +// CHECK: Name: .rela.eh_frame // CHECK-NEXT: Type: SHT_RELA // CHECK-NEXT: Flags [ // CHECK-NEXT: ] // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: // CHECK-NEXT: Size: 1752 -// CHECK-NEXT: Link: 7 -// CHECK-NEXT: Info: 4 +// CHECK-NEXT: Link: +// CHECK-NEXT: Info: // CHECK-NEXT: AddressAlignment: 8 // CHECK-NEXT: EntrySize: 24 // CHECK-NEXT: Relocations [ diff --git a/test/MC/ELF/debug-loc.s b/test/MC/ELF/debug-loc.s index b24fa169deb..ea8eb3ec70c 100644 --- a/test/MC/ELF/debug-loc.s +++ b/test/MC/ELF/debug-loc.s @@ -8,8 +8,8 @@ // FIXME2: We need a debug_line dumper so that we can test the actual contents. // CHECK: Section { -// CHECK: Index: 4 -// CHECK-NEXT: Name: .debug_line +// CHECK: Index: +// CHECK: Name: .debug_line // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: ] diff --git a/test/MC/ELF/empty-dwarf-lines.s b/test/MC/ELF/empty-dwarf-lines.s index 241580bb3b8..19305709cda 100644 --- a/test/MC/ELF/empty-dwarf-lines.s +++ b/test/MC/ELF/empty-dwarf-lines.s @@ -8,8 +8,8 @@ c: .asciz "hi\n" // CHECK: Section { -// CHECK: Index: 4 -// CHECK-NEXT: Name: .debug_line +// CHECK: Index: +// CHECK: Name: .debug_line // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: ] diff --git a/test/MC/ELF/entsize.s b/test/MC/ELF/entsize.s index 8e084e24b25..1dc6103189d 100644 --- a/test/MC/ELF/entsize.s +++ b/test/MC/ELF/entsize.s @@ -33,8 +33,8 @@ .quad 42 // CHECK: Section { -// CHECK: Index: 4 -// CHECK-NEXT: Name: .rodata.str1.1 +// CHECK: Index: +// CHECK: Name: .rodata.str1.1 // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: SHF_ALLOC @@ -50,8 +50,8 @@ // CHECK-NEXT: EntrySize: 1 // CHECK-NEXT: } // CHECK: Section { -// CHECK: Index: 5 -// CHECK-NEXT: Name: .rodata.str2.1 +// CHECK: Index: +// CHECK: Name: .rodata.str2.1 // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: SHF_ALLOC @@ -67,8 +67,8 @@ // CHECK-NEXT: EntrySize: 2 // CHECK-NEXT: } // CHECK: Section { -// CHECK: Index: 6 -// CHECK-NEXT: Name: .rodata.cst8 +// CHECK: Index: +// CHECK: Name: .rodata.cst8 // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: SHF_ALLOC diff --git a/test/MC/ELF/file-double.s b/test/MC/ELF/file-double.s index b5da8c5a858..8ea5fc759b3 100644 --- a/test/MC/ELF/file-double.s +++ b/test/MC/ELF/file-double.s @@ -34,7 +34,7 @@ bar.c: // CHECK-NEXT: Binding: Global // CHECK-NEXT: Type: None // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK: Symbol { // CHECK: Name: foo.c @@ -43,5 +43,5 @@ bar.c: // CHECK-NEXT: Binding: Global // CHECK-NEXT: Type: None // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } diff --git a/test/MC/ELF/file.s b/test/MC/ELF/file.s index 6b6cb44e2b2..fe630ced23c 100644 --- a/test/MC/ELF/file.s +++ b/test/MC/ELF/file.s @@ -21,5 +21,5 @@ foa: // CHECK-NEXT: Binding: Local // CHECK-NEXT: Type: None // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } diff --git a/test/MC/ELF/lcomm.s b/test/MC/ELF/lcomm.s index 7d8ac3fcafa..94bd5ea1997 100644 --- a/test/MC/ELF/lcomm.s +++ b/test/MC/ELF/lcomm.s @@ -10,7 +10,7 @@ // CHECK-NEXT: Binding: Local // CHECK-NEXT: Type: Object // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .bss (0x3) +// CHECK-NEXT: Section: .bss // CHECK-NEXT: } // CHECK: Symbol { // CHECK: Name: B @@ -19,5 +19,5 @@ // CHECK-NEXT: Binding: Local // CHECK-NEXT: Type: Object // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .bss (0x3) +// CHECK-NEXT: Section: .bss // CHECK-NEXT: } diff --git a/test/MC/ELF/n_bytes.s b/test/MC/ELF/n_bytes.s index e658de09a2f..fcbd0e88c2c 100644 --- a/test/MC/ELF/n_bytes.s +++ b/test/MC/ELF/n_bytes.s @@ -6,8 +6,8 @@ .int 42, 1, 2, 3 // CHECK: Section { -// CHECK: Index: 1 -// CHECK-NEXT: Name: .text +// CHECK: Index: +// CHECK: Name: .text // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: SHF_ALLOC diff --git a/test/MC/ELF/noexec.s b/test/MC/ELF/noexec.s index 28f50cb7f69..3769427a3b1 100644 --- a/test/MC/ELF/noexec.s +++ b/test/MC/ELF/noexec.s @@ -1,8 +1,8 @@ // RUN: llvm-mc -no-exec-stack -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -t | FileCheck %s // CHECK: Section { -// CHECK: Index: 4 -// CHECK-NEXT: Name: .note.GNU-stack +// CHECK: Index: +// CHECK: Name: .note.GNU-stack // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: ] @@ -22,5 +22,5 @@ // CHECK-NEXT: Binding: Local // CHECK-NEXT: Type: Section // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .note.GNU-stack (0x4) +// CHECK-NEXT: Section: .note.GNU-stack // CHECK-NEXT: } diff --git a/test/MC/ELF/norelocation.s b/test/MC/ELF/norelocation.s index 13703829280..054fc5f95cb 100644 --- a/test/MC/ELF/norelocation.s +++ b/test/MC/ELF/norelocation.s @@ -1,26 +1,7 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -sd -sr | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r | FileCheck %s call bar bar: -// CHECK: Section { -// CHECK: Name: .text -// CHECK-NEXT: Type: SHT_PROGBITS -// CHECK-NEXT: Flags [ (0x6) -// CHECK-NEXT: SHF_ALLOC -// CHECK-NEXT: SHF_EXECINSTR -// CHECK-NEXT: ] -// CHECK-NEXT: Address: 0x0 -// CHECK-NEXT: Offset: 0x40 -// CHECK-NEXT: Size: 5 -// CHECK-NEXT: Link: 0 -// CHECK-NEXT: Info: 0 -// CHECK-NEXT: AddressAlignment: 4 -// CHECK-NEXT: EntrySize: 0 -// CHECK-NEXT: Relocations [ -// CHECK-NEXT: ] -// CHECK-NEXT: SectionData ( -// CHECK-NEXT: 0000: E8000000 00 -// CHECK-NEXT: ) -// CHECK-NEXT: } -// CHECK: shstrtab +// CHECK: Relocations [ +// CHECK-NEXT: ] diff --git a/test/MC/ELF/pr19430.s b/test/MC/ELF/pr19430.s index a1e524662a9..3ba6d729b4b 100644 --- a/test/MC/ELF/pr19430.s +++ b/test/MC/ELF/pr19430.s @@ -8,7 +8,7 @@ .cfi_endproc // CHECK: Relocations [ -// CHECK-NEXT: Section (5) .rela.eh_frame { +// CHECK-NEXT: Section ({{.*}}) .rela.eh_frame { // CHECK-NEXT: 0x20 R_X86_64_PC32 .text 0x3E8 // CHECK-NEXT: } // CHECK-NEXT: ] diff --git a/test/MC/ELF/relocation-pc.s b/test/MC/ELF/relocation-pc.s index a8783a7afb1..ca7addf3a62 100644 --- a/test/MC/ELF/relocation-pc.s +++ b/test/MC/ELF/relocation-pc.s @@ -5,13 +5,6 @@ loope 0 # R_X86_64_PC8 jmp -256 # R_X86_64_PC32 -// CHECK: Section { -// CHECK: Index: 1 -// CHECK-NEXT: Name: .text -// CHECK: Relocations [ -// CHECK-NEXT: ] -// CHECK-NEXT: } - // CHECK: Section { // CHECK: Index: // CHECK: Name: .rela.text @@ -21,8 +14,8 @@ // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: // CHECK-NEXT: Size: 48 -// CHECK-NEXT: Link: 6 -// CHECK-NEXT: Info: 1 +// CHECK-NEXT: Link: +// CHECK-NEXT: Info: // CHECK-NEXT: AddressAlignment: 8 // CHECK-NEXT: EntrySize: 24 // CHECK-NEXT: Relocations [ diff --git a/test/MC/ELF/rename.s b/test/MC/ELF/rename.s index a7f96381cbd..8be06424cf2 100644 --- a/test/MC/ELF/rename.s +++ b/test/MC/ELF/rename.s @@ -24,8 +24,8 @@ defined3: // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: // CHECK-NEXT: Size: 24 -// CHECK-NEXT: Link: 6 -// CHECK-NEXT: Info: 1 +// CHECK-NEXT: Link: +// CHECK-NEXT: Info: // CHECK-NEXT: AddressAlignment: 8 // CHECK-NEXT: EntrySize: 24 // CHECK-NEXT: Relocations [ diff --git a/test/MC/ELF/section.s b/test/MC/ELF/section.s index 7dc23c2e596..5ee9485bdbd 100644 --- a/test/MC/ELF/section.s +++ b/test/MC/ELF/section.s @@ -35,7 +35,7 @@ // CHECK-NEXT: EntrySize: 0 // CHECK-NEXT: } // CHECK-NEXT: Section { -// CHECK-NEXT: Index: 11 +// CHECK-NEXT: Index: // CHECK-NEXT: Name: .fini // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ @@ -51,7 +51,7 @@ // CHECK-NEXT: EntrySize: 0 // CHECK-NEXT: } // CHECK-NEXT: Section { -// CHECK-NEXT: Index: 12 +// CHECK-NEXT: Index: // CHECK-NEXT: Name: .rodata // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ @@ -66,7 +66,7 @@ // CHECK-NEXT: EntrySize: 0 // CHECK-NEXT: } // CHECK-NEXT: Section { -// CHECK-NEXT: Index: 13 +// CHECK-NEXT: Index: // CHECK-NEXT: Name: zed // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ diff --git a/test/MC/ELF/type-propagate.s b/test/MC/ELF/type-propagate.s index 15d05af7f2f..ecfab6dbcda 100644 --- a/test/MC/ELF/type-propagate.s +++ b/test/MC/ELF/type-propagate.s @@ -36,7 +36,7 @@ sym10: // CHECK-NEXT: Binding: Local (0x0) // CHECK-NEXT: Type: Object (0x1) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym02 @@ -45,7 +45,7 @@ sym10: // CHECK-NEXT: Binding: Local (0x0) // CHECK-NEXT: Type: Function (0x2) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym03 @@ -54,7 +54,7 @@ sym10: // CHECK-NEXT: Binding: Local (0x0) // CHECK-NEXT: Type: Function (0x2) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym04 @@ -63,7 +63,7 @@ sym10: // CHECK-NEXT: Binding: Local (0x0) // CHECK-NEXT: Type: Object (0x1) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym05 @@ -75,7 +75,7 @@ sym10: // CHECK-NEXT: Type: Object (0x1) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym06 @@ -102,7 +102,7 @@ sym10: // CHECK-NEXT: Binding: Local (0x0) // CHECK-NEXT: Type: Function (0x2) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym09 @@ -114,7 +114,7 @@ sym10: // CHECK-NEXT: Type: Function (0x2) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym10 @@ -123,7 +123,7 @@ sym10: // CHECK-NEXT: Binding: Local (0x0) // CHECK-NEXT: Type: Function (0x2) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym11 @@ -135,7 +135,7 @@ sym10: // CHECK-NEXT: Type: Function (0x2) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym12 @@ -147,5 +147,5 @@ sym10: // CHECK-NEXT: Type: Function (0x2) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } diff --git a/test/MC/ELF/type.s b/test/MC/ELF/type.s index f7745d88ea3..d9782d13973 100644 --- a/test/MC/ELF/type.s +++ b/test/MC/ELF/type.s @@ -137,7 +137,7 @@ alias12: // CHECK-NEXT: Binding: Global // CHECK-NEXT: Type: Object // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: foo @@ -146,7 +146,7 @@ alias12: // CHECK-NEXT: Binding: Global // CHECK-NEXT: Type: Function // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: func @@ -155,7 +155,7 @@ alias12: // CHECK-NEXT: Binding: Global // CHECK-NEXT: Type: Function // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: ifunc @@ -164,7 +164,7 @@ alias12: // CHECK-NEXT: Binding: Global // CHECK-NEXT: Type: GNU_IFunc // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: obj @@ -173,7 +173,7 @@ alias12: // CHECK-NEXT: Binding: Global // CHECK-NEXT: Type: Object // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym1 @@ -182,7 +182,7 @@ alias12: // CHECK-NEXT: Binding: Global (0x1) // CHECK-NEXT: Type: GNU_IFunc (0xA) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym10 @@ -191,7 +191,7 @@ alias12: // CHECK-NEXT: Binding: Global (0x1) // CHECK-NEXT: Type: TLS (0x6) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym11 @@ -200,7 +200,7 @@ alias12: // CHECK-NEXT: Binding: Global (0x1) // CHECK-NEXT: Type: TLS (0x6) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym12 @@ -209,7 +209,7 @@ alias12: // CHECK-NEXT: Binding: Global (0x1) // CHECK-NEXT: Type: TLS (0x6) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym2 @@ -218,7 +218,7 @@ alias12: // CHECK-NEXT: Binding: Global (0x1) // CHECK-NEXT: Type: GNU_IFunc (0xA) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym3 @@ -227,7 +227,7 @@ alias12: // CHECK-NEXT: Binding: Global (0x1) // CHECK-NEXT: Type: GNU_IFunc (0xA) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym4 @@ -236,7 +236,7 @@ alias12: // CHECK-NEXT: Binding: Global (0x1) // CHECK-NEXT: Type: Function (0x2) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym5 @@ -245,7 +245,7 @@ alias12: // CHECK-NEXT: Binding: Global (0x1) // CHECK-NEXT: Type: Function (0x2) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym6 @@ -254,7 +254,7 @@ alias12: // CHECK-NEXT: Binding: Global (0x1) // CHECK-NEXT: Type: Object (0x1) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym7 @@ -263,7 +263,7 @@ alias12: // CHECK-NEXT: Binding: Global (0x1) // CHECK-NEXT: Type: GNU_IFunc (0xA) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym8 @@ -272,7 +272,7 @@ alias12: // CHECK-NEXT: Binding: Global (0x1) // CHECK-NEXT: Type: Function (0x2) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: sym9 @@ -281,7 +281,7 @@ alias12: // CHECK-NEXT: Binding: Global (0x1) // CHECK-NEXT: Type: TLS (0x6) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: tls @@ -290,7 +290,7 @@ alias12: // CHECK-NEXT: Binding: Global // CHECK-NEXT: Type: TLS // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: tls_quoted @@ -299,7 +299,7 @@ alias12: // CHECK-NEXT: Binding: Global // CHECK-NEXT: Type: TLS // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: tls_upper_case @@ -308,7 +308,7 @@ alias12: // CHECK-NEXT: Binding: Global // CHECK-NEXT: Type: TLS // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: zed (32) @@ -317,6 +317,6 @@ alias12: // CHECK-NEXT: Binding: Unique (0xA) // CHECK-NEXT: Type: Object (0x1) // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: ] diff --git a/test/MC/ELF/weakref.s b/test/MC/ELF/weakref.s index 9485e499c62..d263af31a0d 100644 --- a/test/MC/ELF/weakref.s +++ b/test/MC/ELF/weakref.s @@ -86,7 +86,7 @@ bar15: // CHECK-NEXT: Binding: Local // CHECK-NEXT: Type: None // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: bar7 @@ -95,7 +95,7 @@ bar15: // CHECK-NEXT: Binding: Local // CHECK-NEXT: Type: None // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: bar8 @@ -104,7 +104,7 @@ bar15: // CHECK-NEXT: Binding: Local // CHECK-NEXT: Type: None // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: bar9 @@ -113,7 +113,7 @@ bar15: // CHECK-NEXT: Binding: Local // CHECK-NEXT: Type: None // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: .text @@ -122,7 +122,7 @@ bar15: // CHECK-NEXT: Binding: Local // CHECK-NEXT: Type: Section // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: .data @@ -149,7 +149,7 @@ bar15: // CHECK-NEXT: Binding: Global // CHECK-NEXT: Type: None // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: bar11 @@ -158,7 +158,7 @@ bar15: // CHECK-NEXT: Binding: Global // CHECK-NEXT: Type: None // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: bar12 @@ -167,7 +167,7 @@ bar15: // CHECK-NEXT: Binding: Global // CHECK-NEXT: Type: None // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: bar13 @@ -176,7 +176,7 @@ bar15: // CHECK-NEXT: Binding: Global // CHECK-NEXT: Type: None // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: bar14 @@ -185,7 +185,7 @@ bar15: // CHECK-NEXT: Binding: Global // CHECK-NEXT: Type: None // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: bar15 @@ -194,7 +194,7 @@ bar15: // CHECK-NEXT: Binding: Global // CHECK-NEXT: Type: None // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .text (0x1) +// CHECK-NEXT: Section: .text // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: bar2