1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
|
# RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj --symbols - | FileCheck %s
# This assembly should make an object with two .text sections, two .xdata
# sections, and two .pdata sections.
.def f;
.scl 2;
.type 32;
.endef
.section .text,"xr",discard,f
.globl f
.p2align 4, 0x90
f: # @f
.Ltmp0:
.seh_proc f
# %bb.0:
subq $40, %rsp
.Ltmp1:
.seh_stackalloc 40
.Ltmp2:
.seh_endprologue
callq g
nop
addq $40, %rsp
retq
.seh_handlerdata
.section .text,"xr",discard,f
.Ltmp3:
.seh_endproc
.def g;
.scl 3;
.type 32;
.endef
.section .text,"xr",associative,f
.p2align 4, 0x90
g: # @g
.Ltmp4:
.seh_proc g
# %bb.0:
.Ltmp5:
.seh_endprologue
retq
.seh_handlerdata
.section .text,"xr",associative,f
.Ltmp6:
.seh_endproc
# CHECK: Symbols [
# CHECK: Symbol {
# CHECK: Name: .text
# CHECK: Section: .text (4)
# CHECK: AuxSymbolCount: 1
# CHECK: AuxSectionDef {
# CHECK: Length: 15
# CHECK: RelocationCount: 1
# CHECK: LineNumberCount: 0
# CHECK: Checksum: 0xE17CBB7
# CHECK: Number: 4
# CHECK: Selection: Any (0x2)
# CHECK: }
# CHECK: }
# CHECK: Symbol {
# CHECK: Name: .xdata
# CHECK: Value: 0
# CHECK: Section: .xdata (5)
# CHECK: BaseType: Null (0x0)
# CHECK: ComplexType: Null (0x0)
# CHECK: StorageClass: Static (0x3)
# CHECK: AuxSymbolCount: 1
# CHECK: AuxSectionDef {
# CHECK: Length: 8
# CHECK: RelocationCount: 0
# CHECK: LineNumberCount: 0
# CHECK: Checksum: 0xFC539D1
# CHECK: Number: 4
# CHECK: Selection: Associative (0x5)
# CHECK: AssocSection: .text (4)
# CHECK: }
# CHECK: }
# CHECK: Symbol {
# CHECK: Name: .text
# CHECK: Value: 0
# CHECK: Section: .text (6)
# CHECK: BaseType: Null (0x0)
# CHECK: ComplexType: Null (0x0)
# CHECK: StorageClass: Static (0x3)
# CHECK: AuxSymbolCount: 1
# CHECK: AuxSectionDef {
# CHECK: Length: 1
# CHECK: RelocationCount: 0
# CHECK: LineNumberCount: 0
# CHECK: Checksum: 0x26D930A
# CHECK: Number: 4
# CHECK: Selection: Associative (0x5)
# CHECK: AssocSection: .text (4)
# CHECK: }
# CHECK: }
# CHECK: Symbol {
# CHECK: Name: .xdata
# CHECK: Value: 0
# CHECK: Section: .xdata (7)
# CHECK: BaseType: Null (0x0)
# CHECK: ComplexType: Null (0x0)
# CHECK: StorageClass: Static (0x3)
# CHECK: AuxSymbolCount: 1
# CHECK: AuxSectionDef {
# CHECK: Length: 8
# CHECK: RelocationCount: 0
# CHECK: LineNumberCount: 0
# CHECK: Checksum: 0xCCAA009E
# CHECK: Number: 4
# CHECK: Selection: Associative (0x5)
# CHECK: AssocSection: .text (4)
# CHECK: }
# CHECK: }
# CHECK: Symbol {
# CHECK: Name: .pdata
# CHECK: Value: 0
# CHECK: Section: .pdata (8)
# CHECK: BaseType: Null (0x0)
# CHECK: ComplexType: Null (0x0)
# CHECK: StorageClass: Static (0x3)
# CHECK: AuxSymbolCount: 1
# CHECK: AuxSectionDef {
# CHECK: Length: 12
# CHECK: RelocationCount: 3
# CHECK: LineNumberCount: 0
# CHECK: Checksum: 0xD92012AC
# CHECK: Number: 4
# CHECK: Selection: Associative (0x5)
# CHECK: AssocSection: .text (4)
# CHECK: }
# CHECK: }
# CHECK: Symbol {
# CHECK: Name: .pdata
# CHECK: Value: 0
# CHECK: Section: .pdata (9)
# CHECK: BaseType: Null (0x0)
# CHECK: ComplexType: Null (0x0)
# CHECK: StorageClass: Static (0x3)
# CHECK: AuxSymbolCount: 1
# CHECK: AuxSectionDef {
# CHECK: Length: 12
# CHECK: RelocationCount: 3
# CHECK: LineNumberCount: 0
# CHECK: Checksum: 0xCCAA009E
# CHECK: Number: 4
# CHECK: Selection: Associative (0x5)
# CHECK: AssocSection: .text (4)
# CHECK: }
# CHECK: }
# CHECK: ]
|