1 ## Check that we print the external symbols "func1" and "func2", even though
2 ## the pdata relocations point at the '.text' symbol.
4 # RUN: yaml2obj %s -o %t.obj
5 # RUN: llvm-readobj --unwind %t.obj | FileCheck %s
7 # CHECK: StartAddress: func1
8 # CHECK: EndAddress: func1 +0x14
9 # CHECK: UnwindInfoAddress: .xdata
11 # CHECK: StartAddress: func2
12 # CHECK: EndAddress: func2 +0x16
13 # CHECK: UnwindInfoAddress: .xdata +0x8
17 Machine: IMAGE_FILE_MACHINE_AMD64
18 Characteristics: [ IMAGE_FILE_LINE_NUMS_STRIPPED ]
21 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
23 SectionData: 4883EC38488D54242CE800000000904883C438C366662E0F1F840000000000904883EC3831C9488D54242CE800000000904883C438C3
27 Type: IMAGE_REL_AMD64_REL32
30 Type: IMAGE_REL_AMD64_REL32
32 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
34 SectionData: '01040100046200000104010004620000'
36 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
38 SectionData: '000000001400000000000000200000003600000008000000'
42 Type: IMAGE_REL_AMD64_ADDR32NB
45 Type: IMAGE_REL_AMD64_ADDR32NB
48 Type: IMAGE_REL_AMD64_ADDR32NB
51 Type: IMAGE_REL_AMD64_ADDR32NB
54 Type: IMAGE_REL_AMD64_ADDR32NB
57 Type: IMAGE_REL_AMD64_ADDR32NB
62 SimpleType: IMAGE_SYM_TYPE_NULL
63 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
64 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
68 PointerToLinenumber: 0
69 PointerToNextFunction: 0
73 SimpleType: IMAGE_SYM_TYPE_NULL
74 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
75 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
79 SimpleType: IMAGE_SYM_TYPE_NULL
80 ComplexType: IMAGE_SYM_DTYPE_NULL
81 StorageClass: IMAGE_SYM_CLASS_STATIC
84 NumberOfRelocations: 2
85 NumberOfLinenumbers: 0
91 SimpleType: IMAGE_SYM_TYPE_NULL
92 ComplexType: IMAGE_SYM_DTYPE_NULL
93 StorageClass: IMAGE_SYM_CLASS_STATIC
96 NumberOfRelocations: 0
97 NumberOfLinenumbers: 0
103 SimpleType: IMAGE_SYM_TYPE_NULL
104 ComplexType: IMAGE_SYM_DTYPE_NULL
105 StorageClass: IMAGE_SYM_CLASS_STATIC
108 NumberOfRelocations: 6
109 NumberOfLinenumbers: 0
115 SimpleType: IMAGE_SYM_TYPE_NULL
116 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
117 StorageClass: IMAGE_SYM_CLASS_EXTERNAL