[llvm] r251970 - Don't create empty sections just to look like gas.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 3 12:02:22 PST 2015
Author: rafael
Date: Tue Nov 3 14:02:22 2015
New Revision: 251970
URL: http://llvm.org/viewvc/llvm-project?rev=251970&view=rev
Log:
Don't create empty sections just to look like gas.
We are long past the time when this much bug for bug compatibility was
useful.
Modified:
llvm/trunk/lib/MC/MCELFStreamer.cpp
llvm/trunk/test/MC/ARM/eh-directive-section-comdat.s
llvm/trunk/test/MC/ARM/eh-directive-section-multiple-func.s
llvm/trunk/test/MC/ARM/eh-directive-section.s
llvm/trunk/test/MC/ARM/eh-link.s
llvm/trunk/test/MC/ELF/align.s
llvm/trunk/test/MC/ELF/comdat-dup-group-name.s
llvm/trunk/test/MC/ELF/comdat-reloc.s
llvm/trunk/test/MC/ELF/comdat.s
llvm/trunk/test/MC/ELF/empty.s
llvm/trunk/test/MC/ELF/many-sections-2.s
llvm/trunk/test/MC/ELF/many-sections-3.s
llvm/trunk/test/MC/ELF/many-sections.s
llvm/trunk/test/MC/ELF/section-sym.s
llvm/trunk/test/MC/ELF/section-unique.s
llvm/trunk/test/MC/ELF/strtab-suffix-opt.s
Modified: llvm/trunk/lib/MC/MCELFStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCELFStreamer.cpp?rev=251970&r1=251969&r2=251970&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCELFStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCELFStreamer.cpp Tue Nov 3 14:02:22 2015
@@ -86,20 +86,10 @@ void MCELFStreamer::mergeFragment(MCData
}
void MCELFStreamer::InitSections(bool NoExecStack) {
- // This emulates the same behavior of GNU as. This makes it easier
- // to compare the output as the major sections are in the same order.
MCContext &Ctx = getContext();
SwitchSection(Ctx.getObjectFileInfo()->getTextSection());
EmitCodeAlignment(4);
- SwitchSection(Ctx.getObjectFileInfo()->getDataSection());
- EmitCodeAlignment(4);
-
- SwitchSection(Ctx.getObjectFileInfo()->getBSSSection());
- EmitCodeAlignment(4);
-
- SwitchSection(Ctx.getObjectFileInfo()->getTextSection());
-
if (NoExecStack)
SwitchSection(Ctx.getAsmInfo()->getNonexecutableStackSection(Ctx));
}
Modified: llvm/trunk/test/MC/ARM/eh-directive-section-comdat.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/eh-directive-section-comdat.s?rev=251970&r1=251969&r2=251970&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/eh-directive-section-comdat.s (original)
+++ llvm/trunk/test/MC/ARM/eh-directive-section-comdat.s Tue Nov 3 14:02:22 2015
@@ -53,8 +53,8 @@ func1:
@ These are the section indexes of .TEST1, .ARM.extab.TEST1, .ARM.exidx.TEST1,
@ .rel.ARM.extab.TEST1, and .rel.ARM.exidx.TEST1.
@-------------------------------------------------------------------------------
-@ CHECK-NEXT: 0000: 01000000 06000000 07000000 08000000
-@ CHECK-NEXT: 0010: 09000000 0A000000
+@ CHECK-NEXT: 0000: 01000000 04000000 05000000 06000000
+@ CHECK-NEXT: 0010: 07000000 08000000
@ CHECK-NEXT: )
@ CHECK: }
@@ -63,7 +63,7 @@ func1:
@ Check the .TEST1 section
@-------------------------------------------------------------------------------
@ CHECK: Section {
-@ CHECK: Index: 6
+@ CHECK: Index: 4
@ CHECK-NEXT: Name: .TEST1
@ CHECK: Type: SHT_PROGBITS (0x1)
@-------------------------------------------------------------------------------
@@ -81,7 +81,7 @@ func1:
@ Check the .ARM.extab.TEST1 section
@-------------------------------------------------------------------------------
@ CHECK: Section {
-@ CHECK: Index: 7
+@ CHECK: Index: 5
@ CHECK-NEXT: Name: .ARM.extab.TEST1
@ CHECK: Type: SHT_PROGBITS (0x1)
@-------------------------------------------------------------------------------
@@ -94,7 +94,7 @@ func1:
@ CHECK: }
@ CHECK: Section {
-@ CHECK: Index: 8
+@ CHECK: Index: 6
@ CHECK-NEXT: Name: .rel.ARM.extab.TEST1
@ CHECK: }
@@ -102,7 +102,7 @@ func1:
@ Check the .ARM.exidx.TEST1 section
@-------------------------------------------------------------------------------
@ CHECK: Section {
-@ CHECK: Index: 9
+@ CHECK: Index: 7
@ CHECK-NEXT: Name: .ARM.exidx.TEST1
@ CHECK: Type: SHT_ARM_EXIDX (0x70000001)
@-------------------------------------------------------------------------------
@@ -113,12 +113,12 @@ func1:
@ CHECK: SHF_GROUP (0x200)
@ CHECK: SHF_LINK_ORDER (0x80)
@ CHECK: ]
-@ CHECK: Link: 6
+@ CHECK: Link: 4
@ CHECK: }
@ CHECK: Section {
-@ CHECK: Index: 10
+@ CHECK: Index: 8
@ CHECK-NEXT: Name: .rel.ARM.exidx.TEST1
@ CHECK: }
Modified: llvm/trunk/test/MC/ARM/eh-directive-section-multiple-func.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/eh-directive-section-multiple-func.s?rev=251970&r1=251969&r2=251970&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/eh-directive-section-multiple-func.s (original)
+++ llvm/trunk/test/MC/ARM/eh-directive-section-multiple-func.s Tue Nov 3 14:02:22 2015
@@ -54,7 +54,7 @@ func2:
@ Check the .TEST1 section. There should be two "bx lr" instructions.
@-------------------------------------------------------------------------------
@ CHECK: Section {
-@ CHECK: Index: 5
+@ CHECK: Index: 3
@ CHECK-NEXT: Name: .TEST1
@ CHECK: SectionData (
@ CHECK: 0000: 1EFF2FE1 1EFF2FE1 |../.../.|
@@ -87,7 +87,7 @@ func2:
@-------------------------------------------------------------------------------
@ CHECK: Section {
@ CHECK: Name: .ARM.exidx.TEST1
-@ CHECK: Link: 5
+@ CHECK: Link: 3
@-------------------------------------------------------------------------------
@ The first word should be the offset to .TEST1.
@ The second word should be the offset to .ARM.extab.TEST1
Modified: llvm/trunk/test/MC/ARM/eh-directive-section.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/eh-directive-section.s?rev=251970&r1=251969&r2=251970&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/eh-directive-section.s (original)
+++ llvm/trunk/test/MC/ARM/eh-directive-section.s Tue Nov 3 14:02:22 2015
@@ -50,7 +50,7 @@ func2:
@-------------------------------------------------------------------------------
@ CHECK: Sections [
@ CHECK: Section {
-@ CHECK: Index: 5
+@ CHECK: Index: 3
@ CHECK-NEXT: Name: .TEST1
@ CHECK: SectionData (
@ CHECK: 0000: 1EFF2FE1 |../.|
@@ -84,7 +84,7 @@ func2:
@-------------------------------------------------------------------------------
@ This section should linked with .TEST1 section.
@-------------------------------------------------------------------------------
-@ CHECK: Link: 5
+@ CHECK: Link: 3
@-------------------------------------------------------------------------------
@ The first word should be relocated to the code address in .TEST1 section.
@@ -109,7 +109,7 @@ func2:
@ Check the TEST2 section (without the dot in the beginning)
@-------------------------------------------------------------------------------
@ CHECK: Section {
-@ CHECK: Index: 10
+@ CHECK: Index: 8
@ CHECK-NEXT: Name: TEST2
@ CHECK: SectionData (
@ CHECK: 0000: 1EFF2FE1 |../.|
@@ -143,7 +143,7 @@ func2:
@-------------------------------------------------------------------------------
@ This section should linked with TEST2 section.
@-------------------------------------------------------------------------------
-@ CHECK: Link: 10
+@ CHECK: Link: 8
@-------------------------------------------------------------------------------
@ The first word should be relocated to the code address in TEST2 section.
Modified: llvm/trunk/test/MC/ARM/eh-link.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/eh-link.s?rev=251970&r1=251969&r2=251970&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/eh-link.s (original)
+++ llvm/trunk/test/MC/ARM/eh-link.s Tue Nov 3 14:02:22 2015
@@ -8,7 +8,7 @@
@ name first we could use a FileCheck variable.
@ CHECK: Section {
-@ CHECK: Index: 6
+@ CHECK: Index: 4
@ CHECK-NEXT: Name: .text
@ CHECK-NEXT: Type: SHT_PROGBITS
@ CHECK-NEXT: Flags [
@@ -25,7 +25,7 @@
@ CHECK-NEXT: EntrySize: 0
@ CHECK-NEXT: }
@ CHECK-NEXT: Section {
-@ CHECK-NEXT: Index: 7
+@ CHECK-NEXT: Index: 5
@ CHECK-NEXT: Name: .ARM.exidx
@ CHECK-NEXT: Type: SHT_ARM_EXIDX
@ CHECK-NEXT: Flags [
@@ -36,14 +36,14 @@
@ CHECK-NEXT: Address: 0x0
@ CHECK-NEXT: Offset:
@ CHECK-NEXT: Size: 8
-@ CHECK-NEXT: Link: 6
+@ CHECK-NEXT: Link: 4
@ CHECK-NEXT: Info: 0
@ CHECK-NEXT: AddressAlignment: 4
@ CHECK-NEXT: EntrySize: 0
@ CHECK-NEXT: }
@ CHECK: Section {
-@ CHECK: Index: 10
+@ CHECK: Index: 8
@ CHECK-NEXT: Name: .text
@ CHECK-NEXT: Type: SHT_PROGBITS
@ CHECK-NEXT: Flags [
@@ -60,7 +60,7 @@
@ CHECK-NEXT: EntrySize: 0
@ CHECK-NEXT: }
@ CHECK-NEXT: Section {
-@ CHECK-NEXT: Index: 11
+@ CHECK-NEXT: Index: 9
@ CHECK-NEXT: Name: .ARM.exidx
@ CHECK-NEXT: Type: SHT_ARM_EXIDX
@ CHECK-NEXT: Flags [
@@ -71,7 +71,7 @@
@ CHECK-NEXT: Address: 0x0
@ CHECK-NEXT: Offset:
@ CHECK-NEXT: Size: 8
-@ CHECK-NEXT: Link: 10
+@ CHECK-NEXT: Link: 8
@ CHECK-NEXT: Info: 0
@ CHECK-NEXT: AddressAlignment: 4
@ CHECK-NEXT: EntrySize: 0
Modified: llvm/trunk/test/MC/ELF/align.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/align.s?rev=251970&r1=251969&r2=251970&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/align.s (original)
+++ llvm/trunk/test/MC/ELF/align.s Tue Nov 3 14:02:22 2015
@@ -1,22 +1,22 @@
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s | FileCheck %s
// Test that the alignment of rodata doesn't force a alignment of the
-// previous section (.bss)
+// previous section (.text)
nop
.section .rodata,"a", at progbits
.align 8
// CHECK: Section {
-// CHECK: Name: .bss
-// CHECK-NEXT: Type: SHT_NOBITS
+// CHECK: Name: .text
+// CHECK-NEXT: Type:
// CHECK-NEXT: Flags [
// CHECK-NEXT: SHF_ALLOC
-// CHECK-NEXT: SHF_WRITE
+// CHECK-NEXT: SHF_EXECINSTR
// CHECK-NEXT: ]
-// CHECK-NEXT: Address: 0x0
-// CHECK-NEXT: Offset: 0x44
-// CHECK-NEXT: Size: 0
+// CHECK-NEXT: Address:
+// CHECK-NEXT: Offset:
+// CHECK-NEXT: Size:
// CHECK-NEXT: Link: 0
// CHECK-NEXT: Info: 0
// CHECK-NEXT: AddressAlignment: 4
Modified: llvm/trunk/test/MC/ELF/comdat-dup-group-name.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/comdat-dup-group-name.s?rev=251970&r1=251969&r2=251970&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/comdat-dup-group-name.s (original)
+++ llvm/trunk/test/MC/ELF/comdat-dup-group-name.s Tue Nov 3 14:02:22 2015
@@ -2,27 +2,27 @@
// Test that we produce two foo sections, each in separate groups
-// CHECK: Index: 5
+// CHECK: Index: 3
// CHECK-NEXT: Name: .group
-// CHECK: Index: 6
+// CHECK: Index: 4
// CHECK-NEXT: Name: .foo
-// CHECK: Index: 7
+// CHECK: Index: 5
// CHECK-NEXT: Name: .group
-// CHECK: Index: 8
+// CHECK: Index: 6
// CHECK-NEXT: Name: .foo
// CHECK: Symbols [
// CHECK: Name: f1
// CHECK-NOT: }
-// CHECK: Section: .group (0x5)
+// CHECK: Section: .group (0x3)
// CHECK: Name: f2
// CHECK-NOT: }
-// CHECK: Section: .group (0x7)
+// CHECK: Section: .group (0x5)
.section .foo,"axG", at progbits,f1,comdat
nop
Modified: llvm/trunk/test/MC/ELF/comdat-reloc.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/comdat-reloc.s?rev=251970&r1=251969&r2=251970&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/comdat-reloc.s (original)
+++ llvm/trunk/test/MC/ELF/comdat-reloc.s Tue Nov 3 14:02:22 2015
@@ -16,14 +16,14 @@ world:
// CHECK: Name: .group
// CHECK-NOT: SectionData
// CHECK: SectionData
-// CHECK-NEXT: 0000: 01000000 07000000 08000000
+// CHECK-NEXT: 0000: 01000000 05000000 06000000
-// CHECK: Index: 7
+// CHECK: Index: 5
// CHECK-NEXT: Name: .text.world
// CHECK-NOT: Section {
// CHECK: SHF_GROUP
-// CHECK: Index: 8
+// CHECK: Index: 6
// CHECK-NEXT: Name: .rela.text.world
// CHECK-NOT: Section {
// CHECK: SHF_GROUP
Modified: llvm/trunk/test/MC/ELF/comdat.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/comdat.s?rev=251970&r1=251969&r2=251970&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/comdat.s (original)
+++ llvm/trunk/test/MC/ELF/comdat.s Tue Nov 3 14:02:22 2015
@@ -3,7 +3,7 @@
// Test that we produce the group sections and that they are before the members
// CHECK: Section {
-// CHECK: Index: 5
+// CHECK: Index: 3
// CHECK-NEXT: Name: .group
// CHECK-NEXT: Type: SHT_GROUP
// CHECK-NEXT: Flags [
@@ -16,11 +16,11 @@
// CHECK-NEXT: AddressAlignment: 4
// CHECK-NEXT: EntrySize: 4
// CHECK-NEXT: SectionData (
-// CHECK-NEXT: 0000: 01000000 06000000 07000000
+// CHECK-NEXT: 0000: 01000000 04000000 05000000
// CHECK-NEXT: )
// CHECK-NEXT: }
// CHECK: Section {
-// CHECK: Index: 8
+// CHECK: Index: 6
// CHECK-NEXT: Name: .group
// CHECK-NEXT: Type: SHT_GROUP
// CHECK-NEXT: Flags [
@@ -33,11 +33,11 @@
// CHECK-NEXT: AddressAlignment: 4
// CHECK-NEXT: EntrySize: 4
// CHECK-NEXT: SectionData (
-// CHECK-NEXT: 0000: 01000000 09000000
+// CHECK-NEXT: 0000: 01000000 07000000
// CHECK-NEXT: )
// CHECK-NEXT: }
// CHECK: Section {
-// CHECK: Index: 10
+// CHECK: Index: 8
// CHECK-NEXT: Name: .group
// CHECK-NEXT: Type: SHT_GROUP
// CHECK-NEXT: Flags [
@@ -50,7 +50,7 @@
// CHECK-NEXT: AddressAlignment: 4
// CHECK-NEXT: EntrySize: 4
// CHECK-NEXT: SectionData (
-// CHECK-NEXT: 0000: 01000000 0B000000 0C000000
+// CHECK-NEXT: 0000: 01000000 09000000 0A000000
// CHECK-NEXT: )
// CHECK-NEXT: }
@@ -72,7 +72,7 @@
// CHECK-NEXT: Binding: Local
// CHECK-NEXT: Type: None
// CHECK-NEXT: Other: 0
-// CHECK-NEXT: Section: .group (0x8)
+// CHECK-NEXT: Section: .group
// CHECK-NEXT: }
// CHECK: Symbol {
Modified: llvm/trunk/test/MC/ELF/empty.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/empty.s?rev=251970&r1=251969&r2=251970&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/empty.s (original)
+++ llvm/trunk/test/MC/ELF/empty.s Tue Nov 3 14:02:22 2015
@@ -10,8 +10,8 @@
// DARWIN-NEXT: Arch: x86_64
// WINDOWS-NEXT: Arch: x86_64
-// Test that like gnu as we create text, data and bss by default. Also test
-// that symtab and strtab are listed.
+// Test that we create text by default. Also test that symtab and strtab are
+// listed.
// CHECK: Section {
// CHECK: Name: .strtab
@@ -20,7 +20,7 @@
// CHECK-NEXT: ]
// CHECK-NEXT: Address: 0x0
// CHECK-NEXT: Offset:
-// CHECK-NEXT: Size: 34
+// CHECK-NEXT: Size: 23
// CHECK-NEXT: Link: 0
// CHECK-NEXT: Info: 0
// CHECK-NEXT: AddressAlignment: 1
@@ -35,36 +35,6 @@
// CHECK-NEXT: ]
// CHECK-NEXT: Address: 0x0
// CHECK-NEXT: Offset: 0x40
-// CHECK-NEXT: Size: 0
-// CHECK-NEXT: Link: 0
-// CHECK-NEXT: Info: 0
-// CHECK-NEXT: AddressAlignment: 4
-// CHECK-NEXT: EntrySize: 0
-// CHECK-NEXT: }
-// CHECK: Section {
-// CHECK: Name: .data
-// CHECK-NEXT: Type: SHT_PROGBITS
-// CHECK-NEXT: Flags [
-// CHECK-NEXT: SHF_ALLOC
-// CHECK-NEXT: SHF_WRITE
-// CHECK-NEXT: ]
-// CHECK-NEXT: Address: 0x0
-// CHECK-NEXT: Offset: 0x40
-// CHECK-NEXT: Size: 0
-// CHECK-NEXT: Link: 0
-// CHECK-NEXT: Info: 0
-// CHECK-NEXT: AddressAlignment: 4
-// CHECK-NEXT: EntrySize: 0
-// CHECK-NEXT: }
-// CHECK: Section {
-// CHECK: Name: .bss
-// CHECK-NEXT: Type: SHT_NOBITS
-// CHECK-NEXT: Flags [
-// CHECK-NEXT: SHF_ALLOC
-// CHECK-NEXT: SHF_WRITE
-// CHECK-NEXT: ]
-// CHECK-NEXT: Address: 0x0
-// CHECK-NEXT: Offset: 0x40
// CHECK-NEXT: Size: 0
// CHECK-NEXT: Link: 0
// CHECK-NEXT: Info: 0
Modified: llvm/trunk/test/MC/ELF/many-sections-2.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/many-sections-2.s?rev=251970&r1=251969&r2=251970&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/many-sections-2.s (original)
+++ llvm/trunk/test/MC/ELF/many-sections-2.s Tue Nov 3 14:02:22 2015
@@ -114,6 +114,9 @@
gen_sections16384 b\x
.endm
+ .section foo
+ .section bar
+
gen_sections32768 a
gen_sections16384 b
gen_sections8192 c
Modified: llvm/trunk/test/MC/ELF/many-sections-3.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/many-sections-3.s?rev=251970&r1=251969&r2=251970&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/many-sections-3.s (original)
+++ llvm/trunk/test/MC/ELF/many-sections-3.s Tue Nov 3 14:02:22 2015
@@ -102,6 +102,8 @@ gen_sections8 l
gen_sections4 m
.section foo
+ .section foo2
+ .section foo3
.section bar, "a"
a:
Modified: llvm/trunk/test/MC/ELF/many-sections.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/many-sections.s?rev=251970&r1=251969&r2=251970&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/many-sections.s (original)
+++ llvm/trunk/test/MC/ELF/many-sections.s Tue Nov 3 14:02:22 2015
@@ -103,7 +103,6 @@ gen_sections64 i
gen_sections32 j
gen_sections16 k
gen_sections8 l
- .section foo
- .section bar
+gen_sections4 m
.section zed
.long zed
Modified: llvm/trunk/test/MC/ELF/section-sym.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/section-sym.s?rev=251970&r1=251969&r2=251970&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/section-sym.s (original)
+++ llvm/trunk/test/MC/ELF/section-sym.s Tue Nov 3 14:02:22 2015
@@ -9,8 +9,8 @@
// The first seciton foo has index 6
// CHECK: Section {
-// CHECK: Index: 6
-// CHECK-NEXT: Name: foo (28)
+// CHECK: Index: 4
+// CHECK-NEXT: Name: foo
// CHECK-NEXT: Type: SHT_PROGBITS (0x1)
// CHECK-NEXT: Flags [ (0x202)
// CHECK-NEXT: SHF_ALLOC (0x2)
@@ -25,8 +25,8 @@
// CHECK-NEXT: EntrySize: 0
// CHECK-NEXT: }
// CHECK: Section {
-// CHECK: Index: 8
-// CHECK-NEXT: Name: foo (28)
+// CHECK: Index: 6
+// CHECK-NEXT: Name: foo
// CHECK-NEXT: Type: SHT_PROGBITS (0x1)
// CHECK-NEXT: Flags [ (0x200)
// CHECK-NEXT: SHF_GROUP (0x200)
@@ -64,22 +64,22 @@
// CHECK-NEXT: Section: Undefined (0x0)
// CHECK-NEXT: }
// CHECK-NEXT: Symbol {
-// CHECK-NEXT: Name: f1 (57)
+// CHECK-NEXT: Name: f1
// CHECK-NEXT: Value: 0x0
// CHECK-NEXT: Size: 0
// CHECK-NEXT: Binding: Local (0x0)
// CHECK-NEXT: Type: None (0x0)
// CHECK-NEXT: Other: 0
-// CHECK-NEXT: Section: .group (0x5)
+// CHECK-NEXT: Section: .group
// CHECK-NEXT: }
// CHECK-NEXT: Symbol {
-// CHECK-NEXT: Name: f2 (54)
+// CHECK-NEXT: Name: f2
// CHECK-NEXT: Value: 0x0
// CHECK-NEXT: Size: 0
// CHECK-NEXT: Binding: Local (0x0)
// CHECK-NEXT: Type: None (0x0)
// CHECK-NEXT: Other: 0
-// CHECK-NEXT: Section: .group (0x7)
+// CHECK-NEXT: Section: .group
// CHECK-NEXT: }
// CHECK-NEXT: Symbol {
// CHECK-NEXT: Name: (0)
@@ -88,6 +88,6 @@
// CHECK-NEXT: Binding: Local (0x0)
// CHECK-NEXT: Type: Section (0x3)
// CHECK-NEXT: Other: 0
-// CHECK-NEXT: Section: foo (0x6)
+// CHECK-NEXT: Section: foo (0x4)
// CHECK-NEXT: }
// CHECK-NEXT: ]
Modified: llvm/trunk/test/MC/ELF/section-unique.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/section-unique.s?rev=251970&r1=251969&r2=251970&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/section-unique.s (original)
+++ llvm/trunk/test/MC/ELF/section-unique.s Tue Nov 3 14:02:22 2015
@@ -26,7 +26,7 @@ g:
// OBJ: Binding: Global
// OBJ: Type: None
// OBJ: Other: 0
-// OBJ: Section: .text (0x5)
+// OBJ: Section: .text (0x3)
// OBJ: }
// OBJ: Symbol {
// OBJ: Name: g
@@ -35,5 +35,5 @@ g:
// OBJ: Binding: Global
// OBJ: Type: None
// OBJ: Other: 0
-// OBJ: Section: .text (0x6)
+// OBJ: Section: .text (0x4)
// OBJ: }
Modified: llvm/trunk/test/MC/ELF/strtab-suffix-opt.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/strtab-suffix-opt.s?rev=251970&r1=251969&r2=251970&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/strtab-suffix-opt.s (original)
+++ llvm/trunk/test/MC/ELF/strtab-suffix-opt.s Tue Nov 3 14:02:22 2015
@@ -16,6 +16,6 @@ foobar:
.Ltmp3:
.size foobar, .Ltmp3-foobar
-// CHECK: Name: bar (19)
-// CHECK: Name: foo (23)
-// CHECK: Name: foobar (16)
+// CHECK: Name: bar (14)
+// CHECK: Name: foo (18)
+// CHECK: Name: foobar (11)
More information about the llvm-commits
mailing list