157 lines · plain
1# RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj --symbols - | FileCheck %s2 3# This assembly should make an object with two .text sections, two .xdata4# sections, and two .pdata sections.5 6 .def f;7 .scl 2;8 .type 32;9 .endef10 .section .text,"xr",discard,f11 .globl f12 .p2align 4, 0x9013f: # @f14.Ltmp0:15.seh_proc f16# %bb.0:17 subq $40, %rsp18.Ltmp1:19 .seh_stackalloc 4020.Ltmp2:21 .seh_endprologue22 callq g23 nop24 .seh_startepilogue25 addq $40, %rsp26 .seh_endepilogue27 retq28 .seh_handlerdata29 .section .text,"xr",discard,f30.Ltmp3:31 .seh_endproc32 33 .def g;34 .scl 3;35 .type 32;36 .endef37 .section .text,"xr",associative,f38 .p2align 4, 0x9039g: # @g40.Ltmp4:41.seh_proc g42# %bb.0:43.Ltmp5:44 .seh_endprologue45 retq46 .seh_handlerdata47 .section .text,"xr",associative,f48.Ltmp6:49 .seh_endproc50 51 52# CHECK: Symbols [53# CHECK: Symbol {54# CHECK: Name: .text55# CHECK: Section: .text (4)56# CHECK: AuxSymbolCount: 157# CHECK: AuxSectionDef {58# CHECK: Length: 1559# CHECK: RelocationCount: 160# CHECK: LineNumberCount: 061# CHECK: Checksum: 0xE17CBB762# CHECK: Number: 463# CHECK: Selection: Any (0x2)64# CHECK: }65# CHECK: }66# CHECK: Symbol {67# CHECK: Name: .xdata68# CHECK: Value: 069# CHECK: Section: .xdata (5)70# CHECK: BaseType: Null (0x0)71# CHECK: ComplexType: Null (0x0)72# CHECK: StorageClass: Static (0x3)73# CHECK: AuxSymbolCount: 174# CHECK: AuxSectionDef {75# CHECK: Length: 876# CHECK: RelocationCount: 077# CHECK: LineNumberCount: 078# CHECK: Checksum: 0xFC539D179# CHECK: Number: 480# CHECK: Selection: Associative (0x5)81# CHECK: AssocSection: .text (4)82# CHECK: }83# CHECK: }84# CHECK: Symbol {85# CHECK: Name: .text86# CHECK: Value: 087# CHECK: Section: .text (6)88# CHECK: BaseType: Null (0x0)89# CHECK: ComplexType: Null (0x0)90# CHECK: StorageClass: Static (0x3)91# CHECK: AuxSymbolCount: 192# CHECK: AuxSectionDef {93# CHECK: Length: 194# CHECK: RelocationCount: 095# CHECK: LineNumberCount: 096# CHECK: Checksum: 0x26D930A97# CHECK: Number: 498# CHECK: Selection: Associative (0x5)99# CHECK: AssocSection: .text (4)100# CHECK: }101# CHECK: }102# CHECK: Symbol {103# CHECK: Name: .xdata104# CHECK: Value: 0105# CHECK: Section: .xdata (7)106# CHECK: BaseType: Null (0x0)107# CHECK: ComplexType: Null (0x0)108# CHECK: StorageClass: Static (0x3)109# CHECK: AuxSymbolCount: 1110# CHECK: AuxSectionDef {111# CHECK: Length: 8112# CHECK: RelocationCount: 0113# CHECK: LineNumberCount: 0114# CHECK: Checksum: 0xCCAA009E115# CHECK: Number: 4116# CHECK: Selection: Associative (0x5)117# CHECK: AssocSection: .text (4)118# CHECK: }119# CHECK: }120# CHECK: Symbol {121# CHECK: Name: .pdata122# CHECK: Value: 0123# CHECK: Section: .pdata (8)124# CHECK: BaseType: Null (0x0)125# CHECK: ComplexType: Null (0x0)126# CHECK: StorageClass: Static (0x3)127# CHECK: AuxSymbolCount: 1128# CHECK: AuxSectionDef {129# CHECK: Length: 12130# CHECK: RelocationCount: 3131# CHECK: LineNumberCount: 0132# CHECK: Checksum: 0xD92012AC133# CHECK: Number: 4134# CHECK: Selection: Associative (0x5)135# CHECK: AssocSection: .text (4)136# CHECK: }137# CHECK: }138# CHECK: Symbol {139# CHECK: Name: .pdata140# CHECK: Value: 0141# CHECK: Section: .pdata (9)142# CHECK: BaseType: Null (0x0)143# CHECK: ComplexType: Null (0x0)144# CHECK: StorageClass: Static (0x3)145# CHECK: AuxSymbolCount: 1146# CHECK: AuxSectionDef {147# CHECK: Length: 12148# CHECK: RelocationCount: 3149# CHECK: LineNumberCount: 0150# CHECK: Checksum: 0xCCAA009E151# CHECK: Number: 4152# CHECK: Selection: Associative (0x5)153# CHECK: AssocSection: .text (4)154# CHECK: }155# CHECK: }156# CHECK: ]157