Update for llvm change.

llvm-svn: 251971
This commit is contained in:
Rafael Espindola 2015-11-03 20:02:28 +00:00
parent 2b27b2f5a7
commit d1ec682411
6 changed files with 47 additions and 111 deletions

View File

@ -26,15 +26,15 @@ _start:
# CHECK-NEXT: Version: 1 # CHECK-NEXT: Version: 1
# CHECK-NEXT: Entry: [[ENTRY:0x[0-9A-F]+]] # CHECK-NEXT: Entry: [[ENTRY:0x[0-9A-F]+]]
# CHECK-NEXT: ProgramHeaderOffset: 0x40 # CHECK-NEXT: ProgramHeaderOffset: 0x40
# CHECK-NEXT: SectionHeaderOffset: 0x1098 # CHECK-NEXT: SectionHeaderOffset: 0x1090
# CHECK-NEXT: Flags [ (0x0) # CHECK-NEXT: Flags [ (0x0)
# CHECK-NEXT: ] # CHECK-NEXT: ]
# CHECK-NEXT: HeaderSize: 64 # CHECK-NEXT: HeaderSize: 64
# CHECK-NEXT: ProgramHeaderEntrySize: 56 # CHECK-NEXT: ProgramHeaderEntrySize: 56
# CHECK-NEXT: ProgramHeaderCount: 3 # CHECK-NEXT: ProgramHeaderCount: 3
# CHECK-NEXT: SectionHeaderEntrySize: 64 # CHECK-NEXT: SectionHeaderEntrySize: 64
# CHECK-NEXT: SectionHeaderCount: 7 # CHECK-NEXT: SectionHeaderCount: 6
# CHECK-NEXT: StringTableSectionIndex: 5 # CHECK-NEXT: StringTableSectionIndex: 4
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Sections [ # CHECK-NEXT: Sections [
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
@ -69,22 +69,6 @@ _start:
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
# CHECK-NEXT: Index: 2 # CHECK-NEXT: Index: 2
# CHECK-NEXT: Name: .data
# CHECK-NEXT: Type: SHT_PROGBITS (0x1)
# CHECK-NEXT: Flags [ (0x3)
# CHECK-NEXT: SHF_ALLOC (0x2)
# CHECK-NEXT: SHF_WRITE (0x1)
# CHECK-NEXT: ]
# CHECK-NEXT: Address: 0x1100C
# CHECK-NEXT: Offset: 0x100C
# CHECK-NEXT: Size: 0
# CHECK-NEXT: Link: 0
# CHECK-NEXT: Info: 0
# CHECK-NEXT: AddressAlignment: 4
# CHECK-NEXT: EntrySize: 0
# CHECK-NEXT: }
# CHECK-NEXT: Section {
# CHECK-NEXT: Index: 3
# CHECK-NEXT: Name: .bss # CHECK-NEXT: Name: .bss
# CHECK-NEXT: Type: SHT_NOBITS (0x8) # CHECK-NEXT: Type: SHT_NOBITS (0x8)
# CHECK-NEXT: Flags [ (0x3) # CHECK-NEXT: Flags [ (0x3)
@ -96,11 +80,11 @@ _start:
# CHECK-NEXT: Size: 0 # CHECK-NEXT: Size: 0
# CHECK-NEXT: Link: 0 # CHECK-NEXT: Link: 0
# CHECK-NEXT: Info: 0 # CHECK-NEXT: Info: 0
# CHECK-NEXT: AddressAlignment: 4 # CHECK-NEXT: AddressAlignment: 0
# CHECK-NEXT: EntrySize: 0 # CHECK-NEXT: EntrySize: 0
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
# CHECK-NEXT: Index: 4 # CHECK-NEXT: Index: 3
# CHECK-NEXT: Name: .symtab # CHECK-NEXT: Name: .symtab
# CHECK-NEXT: Type: SHT_SYMTAB (0x2) # CHECK-NEXT: Type: SHT_SYMTAB (0x2)
# CHECK-NEXT: Flags [ (0x0) # CHECK-NEXT: Flags [ (0x0)
@ -108,33 +92,33 @@ _start:
# CHECK-NEXT: Address: 0x0 # CHECK-NEXT: Address: 0x0
# CHECK-NEXT: Offset: 0x1010 # CHECK-NEXT: Offset: 0x1010
# CHECK-NEXT: Size: 72 # CHECK-NEXT: Size: 72
# CHECK-NEXT: Link: 6 # CHECK-NEXT: Link: 5
# CHECK-NEXT: Info: 2 # CHECK-NEXT: Info: 2
# CHECK-NEXT: AddressAlignment: 8 # CHECK-NEXT: AddressAlignment: 8
# CHECK-NEXT: EntrySize: 24 # CHECK-NEXT: EntrySize: 24
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
# CHECK-NEXT: Index: 5 # CHECK-NEXT: Index: 4
# CHECK-NEXT: Name: .shstrtab # CHECK-NEXT: Name: .shstrtab
# CHECK-NEXT: Type: SHT_STRTAB (0x3) # CHECK-NEXT: Type: SHT_STRTAB (0x3)
# CHECK-NEXT: Flags [ (0x0) # CHECK-NEXT: Flags [ (0x0)
# CHECK-NEXT: ] # CHECK-NEXT: ]
# CHECK-NEXT: Address: 0x0 # CHECK-NEXT: Address: 0x0
# CHECK-NEXT: Offset: 0x1058 # CHECK-NEXT: Offset: 0x1058
# CHECK-NEXT: Size: 44 # CHECK-NEXT: Size: 38
# CHECK-NEXT: Link: 0 # CHECK-NEXT: Link: 0
# CHECK-NEXT: Info: 0 # CHECK-NEXT: Info: 0
# CHECK-NEXT: AddressAlignment: 1 # CHECK-NEXT: AddressAlignment: 1
# CHECK-NEXT: EntrySize: 0 # CHECK-NEXT: EntrySize: 0
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
# CHECK-NEXT: Index: 6 # CHECK-NEXT: Index: 5
# CHECK-NEXT: Name: .strtab (22) # CHECK-NEXT: Name: .strtab (22)
# CHECK-NEXT: Type: SHT_STRTAB (0x3) # CHECK-NEXT: Type: SHT_STRTAB (0x3)
# CHECK-NEXT: Flags [ (0x0) # CHECK-NEXT: Flags [ (0x0)
# CHECK-NEXT: ] # CHECK-NEXT: ]
# CHECK-NEXT: Address: 0x0 # CHECK-NEXT: Address: 0x0
# CHECK-NEXT: Offset: 0x1084 # CHECK-NEXT: Offset: 0x107E
# CHECK-NEXT: Size: 13 # CHECK-NEXT: Size: 13
# CHECK-NEXT: Link: 0 # CHECK-NEXT: Link: 0
# CHECK-NEXT: Info: 0 # CHECK-NEXT: Info: 0

View File

@ -27,15 +27,15 @@ _start:
# CHECK-NEXT: Version: 1 # CHECK-NEXT: Version: 1
# CHECK-NEXT: Entry: [[ENTRY:0x[0-9A-F]+]] # CHECK-NEXT: Entry: [[ENTRY:0x[0-9A-F]+]]
# CHECK-NEXT: ProgramHeaderOffset: 0x40 # CHECK-NEXT: ProgramHeaderOffset: 0x40
# CHECK-NEXT: SectionHeaderOffset: 0x1078 # CHECK-NEXT: SectionHeaderOffset: 0x1070
# CHECK-NEXT: Flags [ (0x0) # CHECK-NEXT: Flags [ (0x0)
# CHECK-NEXT: ] # CHECK-NEXT: ]
# CHECK-NEXT: HeaderSize: 64 # CHECK-NEXT: HeaderSize: 64
# CHECK-NEXT: ProgramHeaderEntrySize: 56 # CHECK-NEXT: ProgramHeaderEntrySize: 56
# CHECK-NEXT: ProgramHeaderCount: 3 # CHECK-NEXT: ProgramHeaderCount: 3
# CHECK-NEXT: SectionHeaderEntrySize: 64 # CHECK-NEXT: SectionHeaderEntrySize: 64
# CHECK-NEXT: SectionHeaderCount: 7 # CHECK-NEXT: SectionHeaderCount: 6
# CHECK-NEXT: StringTableSectionIndex: 5 # CHECK-NEXT: StringTableSectionIndex: 4
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Sections [ # CHECK-NEXT: Sections [
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
@ -70,22 +70,6 @@ _start:
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
# CHECK-NEXT: Index: 2 # CHECK-NEXT: Index: 2
# CHECK-NEXT: Name: .data
# CHECK-NEXT: Type: SHT_PROGBITS (0x1)
# CHECK-NEXT: Flags [ (0x3)
# CHECK-NEXT: SHF_ALLOC (0x2)
# CHECK-NEXT: SHF_WRITE (0x1)
# CHECK-NEXT: ]
# CHECK-NEXT: Address: 0x11010
# CHECK-NEXT: Offset: 0x1010
# CHECK-NEXT: Size: 0
# CHECK-NEXT: Link: 0
# CHECK-NEXT: Info: 0
# CHECK-NEXT: AddressAlignment: 4
# CHECK-NEXT: EntrySize: 0
# CHECK-NEXT: }
# CHECK-NEXT: Section {
# CHECK-NEXT: Index: 3
# CHECK-NEXT: Name: .bss # CHECK-NEXT: Name: .bss
# CHECK-NEXT: Type: SHT_NOBITS (0x8) # CHECK-NEXT: Type: SHT_NOBITS (0x8)
# CHECK-NEXT: Flags [ (0x3) # CHECK-NEXT: Flags [ (0x3)
@ -97,11 +81,11 @@ _start:
# CHECK-NEXT: Size: 0 # CHECK-NEXT: Size: 0
# CHECK-NEXT: Link: 0 # CHECK-NEXT: Link: 0
# CHECK-NEXT: Info: 0 # CHECK-NEXT: Info: 0
# CHECK-NEXT: AddressAlignment: 4 # CHECK-NEXT: AddressAlignment: 0
# CHECK-NEXT: EntrySize: 0 # CHECK-NEXT: EntrySize: 0
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
# CHECK-NEXT: Index: 4 # CHECK-NEXT: Index: 3
# CHECK-NEXT: Name: .symtab # CHECK-NEXT: Name: .symtab
# CHECK-NEXT: Type: SHT_SYMTAB (0x2) # CHECK-NEXT: Type: SHT_SYMTAB (0x2)
# CHECK-NEXT: Flags [ (0x0) # CHECK-NEXT: Flags [ (0x0)
@ -109,33 +93,33 @@ _start:
# CHECK-NEXT: Address: 0x0 # CHECK-NEXT: Address: 0x0
# CHECK-NEXT: Offset: 0x1010 # CHECK-NEXT: Offset: 0x1010
# CHECK-NEXT: Size: 48 # CHECK-NEXT: Size: 48
# CHECK-NEXT: Link: 6 # CHECK-NEXT: Link: 5
# CHECK-NEXT: Info: 1 # CHECK-NEXT: Info: 1
# CHECK-NEXT: AddressAlignment: 8 # CHECK-NEXT: AddressAlignment: 8
# CHECK-NEXT: EntrySize: 24 # CHECK-NEXT: EntrySize: 24
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
# CHECK-NEXT: Index: 5 # CHECK-NEXT: Index: 4
# CHECK-NEXT: Name: .shstrtab # CHECK-NEXT: Name: .shstrtab
# CHECK-NEXT: Type: SHT_STRTAB (0x3) # CHECK-NEXT: Type: SHT_STRTAB (0x3)
# CHECK-NEXT: Flags [ (0x0) # CHECK-NEXT: Flags [ (0x0)
# CHECK-NEXT: ] # CHECK-NEXT: ]
# CHECK-NEXT: Address: 0x0 # CHECK-NEXT: Address: 0x0
# CHECK-NEXT: Offset: 0x1040 # CHECK-NEXT: Offset: 0x1040
# CHECK-NEXT: Size: 44 # CHECK-NEXT: Size: 38
# CHECK-NEXT: Link: 0 # CHECK-NEXT: Link: 0
# CHECK-NEXT: Info: 0 # CHECK-NEXT: Info: 0
# CHECK-NEXT: AddressAlignment: 1 # CHECK-NEXT: AddressAlignment: 1
# CHECK-NEXT: EntrySize: 0 # CHECK-NEXT: EntrySize: 0
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
# CHECK-NEXT: Index: 6 # CHECK-NEXT: Index: 5
# CHECK-NEXT: Name: .strtab (22) # CHECK-NEXT: Name: .strtab (22)
# CHECK-NEXT: Type: SHT_STRTAB (0x3) # CHECK-NEXT: Type: SHT_STRTAB (0x3)
# CHECK-NEXT: Flags [ (0x0) # CHECK-NEXT: Flags [ (0x0)
# CHECK-NEXT: ] # CHECK-NEXT: ]
# CHECK-NEXT: Address: 0x0 # CHECK-NEXT: Address: 0x0
# CHECK-NEXT: Offset: 0x106C # CHECK-NEXT: Offset: 0x1066
# CHECK-NEXT: Size: 8 # CHECK-NEXT: Size: 8
# CHECK-NEXT: Link: 0 # CHECK-NEXT: Link: 0
# CHECK-NEXT: Info: 0 # CHECK-NEXT: Info: 0

View File

@ -25,15 +25,15 @@ _start:
# CHECK-NEXT: Version: 1 # CHECK-NEXT: Version: 1
# CHECK-NEXT: Entry: 0x11000 # CHECK-NEXT: Entry: 0x11000
# CHECK-NEXT: ProgramHeaderOffset: 0x34 # CHECK-NEXT: ProgramHeaderOffset: 0x34
# CHECK-NEXT: SectionHeaderOffset: 0x1060 # CHECK-NEXT: SectionHeaderOffset: 0x105C
# CHECK-NEXT: Flags [ (0x0) # CHECK-NEXT: Flags [ (0x0)
# CHECK-NEXT: ] # CHECK-NEXT: ]
# CHECK-NEXT: HeaderSize: 52 # CHECK-NEXT: HeaderSize: 52
# CHECK-NEXT: ProgramHeaderEntrySize: 32 # CHECK-NEXT: ProgramHeaderEntrySize: 32
# CHECK-NEXT: ProgramHeaderCount: 3 # CHECK-NEXT: ProgramHeaderCount: 3
# CHECK-NEXT: SectionHeaderEntrySize: 40 # CHECK-NEXT: SectionHeaderEntrySize: 40
# CHECK-NEXT: SectionHeaderCount: 7 # CHECK-NEXT: SectionHeaderCount: 6
# CHECK-NEXT: StringTableSectionIndex: 5 # CHECK-NEXT: StringTableSectionIndex: 4
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Sections [ # CHECK-NEXT: Sections [
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
@ -68,22 +68,6 @@ _start:
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
# CHECK-NEXT: Index: 2 # CHECK-NEXT: Index: 2
# CHECK-NEXT: Name: .data
# CHECK-NEXT: Type: SHT_PROGBITS (0x1)
# CHECK-NEXT: Flags [ (0x3)
# CHECK-NEXT: SHF_ALLOC (0x2)
# CHECK-NEXT: SHF_WRITE (0x1)
# CHECK-NEXT: ]
# CHECK-NEXT: Address: 0x1100C
# CHECK-NEXT: Offset: 0x100C
# CHECK-NEXT: Size: 0
# CHECK-NEXT: Link: 0
# CHECK-NEXT: Info: 0
# CHECK-NEXT: AddressAlignment: 4
# CHECK-NEXT: EntrySize: 0
# CHECK-NEXT: }
# CHECK-NEXT: Section {
# CHECK-NEXT: Index: 3
# CHECK-NEXT: Name: .bss # CHECK-NEXT: Name: .bss
# CHECK-NEXT: Type: SHT_NOBITS (0x8) # CHECK-NEXT: Type: SHT_NOBITS (0x8)
# CHECK-NEXT: Flags [ (0x3) # CHECK-NEXT: Flags [ (0x3)
@ -95,11 +79,11 @@ _start:
# CHECK-NEXT: Size: 0 # CHECK-NEXT: Size: 0
# CHECK-NEXT: Link: 0 # CHECK-NEXT: Link: 0
# CHECK-NEXT: Info: 0 # CHECK-NEXT: Info: 0
# CHECK-NEXT: AddressAlignment: 4 # CHECK-NEXT: AddressAlignment: 0
# CHECK-NEXT: EntrySize: 0 # CHECK-NEXT: EntrySize: 0
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
# CHECK-NEXT: Index: 4 # CHECK-NEXT: Index: 3
# CHECK-NEXT: Name: .symtab # CHECK-NEXT: Name: .symtab
# CHECK-NEXT: Type: SHT_SYMTAB # CHECK-NEXT: Type: SHT_SYMTAB
# CHECK-NEXT: Flags [ # CHECK-NEXT: Flags [
@ -107,33 +91,33 @@ _start:
# CHECK-NEXT: Address: 0x0 # CHECK-NEXT: Address: 0x0
# CHECK-NEXT: Offset: 0x100C # CHECK-NEXT: Offset: 0x100C
# CHECK-NEXT: Size: 32 # CHECK-NEXT: Size: 32
# CHECK-NEXT: Link: 6 # CHECK-NEXT: Link: 5
# CHECK-NEXT: Info: 1 # CHECK-NEXT: Info: 1
# CHECK-NEXT: AddressAlignment: 4 # CHECK-NEXT: AddressAlignment: 4
# CHECK-NEXT: EntrySize: 16 # CHECK-NEXT: EntrySize: 16
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
# CHECK-NEXT: Index: 5 # CHECK-NEXT: Index: 4
# CHECK-NEXT: Name: .shstrtab # CHECK-NEXT: Name: .shstrtab
# CHECK-NEXT: Type: SHT_STRTAB (0x3) # CHECK-NEXT: Type: SHT_STRTAB (0x3)
# CHECK-NEXT: Flags [ (0x0) # CHECK-NEXT: Flags [ (0x0)
# CHECK-NEXT: ] # CHECK-NEXT: ]
# CHECK-NEXT: Address: 0x0 # CHECK-NEXT: Address: 0x0
# CHECK-NEXT: Offset: 0x102C # CHECK-NEXT: Offset: 0x102C
# CHECK-NEXT: Size: 44 # CHECK-NEXT: Size: 38
# CHECK-NEXT: Link: 0 # CHECK-NEXT: Link: 0
# CHECK-NEXT: Info: 0 # CHECK-NEXT: Info: 0
# CHECK-NEXT: AddressAlignment: 1 # CHECK-NEXT: AddressAlignment: 1
# CHECK-NEXT: EntrySize: 0 # CHECK-NEXT: EntrySize: 0
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
# CHECK-NEXT: Index: 6 # CHECK-NEXT: Index: 5
# CHECK-NEXT: Name: .strtab (22) # CHECK-NEXT: Name: .strtab (22)
# CHECK-NEXT: Type: SHT_STRTAB (0x3) # CHECK-NEXT: Type: SHT_STRTAB (0x3)
# CHECK-NEXT: Flags [ (0x0) # CHECK-NEXT: Flags [ (0x0)
# CHECK-NEXT: ] # CHECK-NEXT: ]
# CHECK-NEXT: Address: 0x0 # CHECK-NEXT: Address: 0x0
# CHECK-NEXT: Offset: 0x1058 # CHECK-NEXT: Offset: 0x1052
# CHECK-NEXT: Size: 8 # CHECK-NEXT: Size: 8
# CHECK-NEXT: Link: 0 # CHECK-NEXT: Link: 0
# CHECK-NEXT: Info: 0 # CHECK-NEXT: Info: 0

View File

@ -38,15 +38,15 @@ _start:
# CHECK-NEXT: Version: 1 # CHECK-NEXT: Version: 1
# CHECK-NEXT: Entry: 0x10020040 # CHECK-NEXT: Entry: 0x10020040
# CHECK-NEXT: ProgramHeaderOffset: 0x40 # CHECK-NEXT: ProgramHeaderOffset: 0x40
# CHECK-NEXT: SectionHeaderOffset: 0x200D0 # CHECK-NEXT: SectionHeaderOffset: 0x200C8
# CHECK-NEXT: Flags [ (0x0) # CHECK-NEXT: Flags [ (0x0)
# CHECK-NEXT: ] # CHECK-NEXT: ]
# CHECK-NEXT: HeaderSize: 64 # CHECK-NEXT: HeaderSize: 64
# CHECK-NEXT: ProgramHeaderEntrySize: 56 # CHECK-NEXT: ProgramHeaderEntrySize: 56
# CHECK-NEXT: ProgramHeaderCount: 4 # CHECK-NEXT: ProgramHeaderCount: 4
# CHECK-NEXT: SectionHeaderEntrySize: 64 # CHECK-NEXT: SectionHeaderEntrySize: 64
# CHECK-NEXT: SectionHeaderCount: 10 # CHECK-NEXT: SectionHeaderCount: 9
# CHECK-NEXT: StringTableSectionIndex: 8 # CHECK-NEXT: StringTableSectionIndex: 7
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Sections [ # CHECK-NEXT: Sections [
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
@ -85,24 +85,6 @@ _start:
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
# CHECK-NEXT: Index: 2 # CHECK-NEXT: Index: 2
# CHECK-NEXT: Name: .data
# CHECK-NEXT: Type: SHT_PROGBITS (0x1)
# CHECK-NEXT: Flags [ (0x3)
# CHECK-NEXT: SHF_ALLOC (0x2)
# CHECK-NEXT: SHF_WRITE (0x1)
# CHECK-NEXT: ]
# CHECK-NEXT: Address: 0x1001000C
# CHECK-NEXT: Offset: 0x1000C
# CHECK-NEXT: Size: 0
# CHECK-NEXT: Link: 0
# CHECK-NEXT: Info: 0
# CHECK-NEXT: AddressAlignment: 4
# CHECK-NEXT: EntrySize: 0
# CHECK-NEXT: SectionData (
# CHECK: )
# CHECK-NEXT: }
# CHECK-NEXT: Section {
# CHECK-NEXT: Index: 3
# CHECK-NEXT: Name: .toc # CHECK-NEXT: Name: .toc
# CHECK-NEXT: Type: SHT_PROGBITS (0x1) # CHECK-NEXT: Type: SHT_PROGBITS (0x1)
# CHECK-NEXT: Flags [ (0x3) # CHECK-NEXT: Flags [ (0x3)
@ -122,7 +104,7 @@ _start:
# CHECK-NEXT: ) # CHECK-NEXT: )
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
# CHECK-NEXT: Index: 4 # CHECK-NEXT: Index: 3
# CHECK-NEXT: Name: .toc1 # CHECK-NEXT: Name: .toc1
# CHECK-NEXT: Type: SHT_PROGBITS (0x1) # CHECK-NEXT: Type: SHT_PROGBITS (0x1)
# CHECK-NEXT: Flags [ (0x3) # CHECK-NEXT: Flags [ (0x3)
@ -142,7 +124,7 @@ _start:
# CHECK-NEXT: ) # CHECK-NEXT: )
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
# CHECK-NEXT: Index: 5 # CHECK-NEXT: Index: 4
# CHECK-NEXT: Name: .opd # CHECK-NEXT: Name: .opd
# CHECK-NEXT: Type: SHT_PROGBITS (0x1) # CHECK-NEXT: Type: SHT_PROGBITS (0x1)
# CHECK-NEXT: Flags [ (0x3) # CHECK-NEXT: Flags [ (0x3)
@ -162,7 +144,7 @@ _start:
# CHECK-NEXT: ) # CHECK-NEXT: )
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
# CHECK-NEXT: Index: 6 # CHECK-NEXT: Index: 5
# CHECK-NEXT: Name: .bss # CHECK-NEXT: Name: .bss
# CHECK-NEXT: Type: SHT_NOBITS (0x8) # CHECK-NEXT: Type: SHT_NOBITS (0x8)
# CHECK-NEXT: Flags [ (0x3) # CHECK-NEXT: Flags [ (0x3)
@ -174,11 +156,11 @@ _start:
# CHECK-NEXT: Size: 0 # CHECK-NEXT: Size: 0
# CHECK-NEXT: Link: 0 # CHECK-NEXT: Link: 0
# CHECK-NEXT: Info: 0 # CHECK-NEXT: Info: 0
# CHECK-NEXT: AddressAlignment: 4 # CHECK-NEXT: AddressAlignment: 0
# CHECK-NEXT: EntrySize: 0 # CHECK-NEXT: EntrySize: 0
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
# CHECK-NEXT: Index: 7 # CHECK-NEXT: Index: 6
# CHECK-NEXT: Name: .symtab # CHECK-NEXT: Name: .symtab
# CHECK-NEXT: Type: SHT_SYMTAB (0x2) # CHECK-NEXT: Type: SHT_SYMTAB (0x2)
# CHECK-NEXT: Flags [ (0x0) # CHECK-NEXT: Flags [ (0x0)
@ -186,7 +168,7 @@ _start:
# CHECK-NEXT: Address: 0x0 # CHECK-NEXT: Address: 0x0
# CHECK-NEXT: Offset: 0x20058 # CHECK-NEXT: Offset: 0x20058
# CHECK-NEXT: Size: 48 # CHECK-NEXT: Size: 48
# CHECK-NEXT: Link: 9 # CHECK-NEXT: Link: 8
# CHECK-NEXT: Info: 1 # CHECK-NEXT: Info: 1
# CHECK-NEXT: AddressAlignment: 8 # CHECK-NEXT: AddressAlignment: 8
# CHECK-NEXT: EntrySize: 24 # CHECK-NEXT: EntrySize: 24
@ -194,14 +176,14 @@ _start:
# CHECK: ) # CHECK: )
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
# CHECK-NEXT: Index: 8 # CHECK-NEXT: Index: 7
# CHECK-NEXT: Name: .shstrtab # CHECK-NEXT: Name: .shstrtab
# CHECK-NEXT: Type: SHT_STRTAB (0x3) # CHECK-NEXT: Type: SHT_STRTAB (0x3)
# CHECK-NEXT: Flags [ (0x0) # CHECK-NEXT: Flags [ (0x0)
# CHECK-NEXT: ] # CHECK-NEXT: ]
# CHECK-NEXT: Address: 0x0 # CHECK-NEXT: Address: 0x0
# CHECK-NEXT: Offset: 0x20088 # CHECK-NEXT: Offset: 0x20088
# CHECK-NEXT: Size: 60 # CHECK-NEXT: Size: 54
# CHECK-NEXT: Link: 0 # CHECK-NEXT: Link: 0
# CHECK-NEXT: Info: 0 # CHECK-NEXT: Info: 0
# CHECK-NEXT: AddressAlignment: 1 # CHECK-NEXT: AddressAlignment: 1
@ -210,13 +192,13 @@ _start:
# CHECK: ) # CHECK: )
# CHECK-NEXT: } # CHECK-NEXT: }
# CHECK-NEXT: Section { # CHECK-NEXT: Section {
# CHECK-NEXT: Index: 9 # CHECK-NEXT: Index: 8
# CHECK-NEXT: Name: .strtab (32) # CHECK-NEXT: Name: .strtab (32)
# CHECK-NEXT: Type: SHT_STRTAB (0x3) # CHECK-NEXT: Type: SHT_STRTAB (0x3)
# CHECK-NEXT: Flags [ (0x0) # CHECK-NEXT: Flags [ (0x0)
# CHECK-NEXT: ] # CHECK-NEXT: ]
# CHECK-NEXT: Address: 0x0 # CHECK-NEXT: Address: 0x0
# CHECK-NEXT: Offset: 0x200C4 # CHECK-NEXT: Offset: 0x200BE
# CHECK-NEXT: Size: 8 # CHECK-NEXT: Size: 8
# CHECK-NEXT: Link: 0 # CHECK-NEXT: Link: 0
# CHECK-NEXT: Info: 0 # CHECK-NEXT: Info: 0

View File

@ -95,6 +95,9 @@
gen_sections16384 b\x gen_sections16384 b\x
.endm .endm
.bss
.section bar
gen_sections32768 a gen_sections32768 a
gen_sections16384 b gen_sections16384 b
gen_sections8192 c gen_sections8192 c

View File

@ -60,8 +60,7 @@ _start:
// CHECK-NEXT: SectionData ( // CHECK-NEXT: SectionData (
// CHECK-NEXT: 0000: 002E7465 7874002E 62737300 666F6F62 |..text..bss.foob| // CHECK-NEXT: 0000: 002E7465 7874002E 62737300 666F6F62 |..text..bss.foob|
// CHECK-NEXT: 0010: 6172002E 73687374 72746162 002E7374 |ar..shstrtab..st| // CHECK-NEXT: 0010: 6172002E 73687374 72746162 002E7374 |ar..shstrtab..st|
// CHECK-NEXT: 0020: 72746162 002E7379 6D746162 002E6461 |rtab..symtab..da| // CHECK-NEXT: 0020: 72746162 002E7379 6D746162 00 |rtab..symtab.|
// CHECK-NEXT: 0030: 746100 |ta.|
// CHECK-NEXT: ) // CHECK-NEXT: )
// CHECK-NEXT:} // CHECK-NEXT:}
// CHECK: Name: .strtab // CHECK: Name: .strtab