100 lines · yaml
1## Check that we print the external symbol "func1" and "func2", even though2## the pdata relocations point at .text with an immediate offset.3 4# RUN: yaml2obj %s -o %t.obj5# RUN: llvm-readobj --unwind %t.obj | FileCheck %s6 7# CHECK: Function: func1 (0x0)8# CHECK: Function: func2 (0x14)9 10--- !COFF11header:12 Machine: IMAGE_FILE_MACHINE_ARM6413 Characteristics: [ ]14sections:15 - Name: .text16 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]17 Alignment: 418 SectionData: FE0F1FF8E133009100000094FE0741F8C0035FD6FF8300D1F60B00F9FE0F00F9E1330091E0031FAA00000094FE0F40F9F60B40F9FF830091C0035FD619 Relocations:20 - VirtualAddress: 821 SymbolName: other22 Type: IMAGE_REL_ARM64_BRANCH2623 - VirtualAddress: 4024 SymbolName: other25 Type: IMAGE_REL_ARM64_BRANCH2626 - Name: .xdata27 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]28 Alignment: 429 SectionData: 0A002010D2C3D0C202E4E3E330 - Name: .pdata31 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]32 Alignment: 433 SectionData: 000000001500A000140000000000000034 Relocations:35 - VirtualAddress: 036 SymbolName: .text37 Type: IMAGE_REL_ARM64_ADDR32NB38 - VirtualAddress: 839 SymbolName: .text40 Type: IMAGE_REL_ARM64_ADDR32NB41 - VirtualAddress: 1242 SymbolName: .xdata43 Type: IMAGE_REL_ARM64_ADDR32NB44symbols:45 - Name: .text46 Value: 047 SectionNumber: 148 SimpleType: IMAGE_SYM_TYPE_NULL49 ComplexType: IMAGE_SYM_DTYPE_NULL50 StorageClass: IMAGE_SYM_CLASS_STATIC51 SectionDefinition:52 Length: 6053 NumberOfRelocations: 254 NumberOfLinenumbers: 055 CheckSum: 231353066056 Number: 157 - Name: .xdata58 Value: 059 SectionNumber: 260 SimpleType: IMAGE_SYM_TYPE_NULL61 ComplexType: IMAGE_SYM_DTYPE_NULL62 StorageClass: IMAGE_SYM_CLASS_STATIC63 SectionDefinition:64 Length: 1265 NumberOfRelocations: 066 NumberOfLinenumbers: 067 CheckSum: 203412920968 Number: 269 - Name: .pdata70 Value: 071 SectionNumber: 372 SimpleType: IMAGE_SYM_TYPE_NULL73 ComplexType: IMAGE_SYM_DTYPE_NULL74 StorageClass: IMAGE_SYM_CLASS_STATIC75 SectionDefinition:76 Length: 1677 NumberOfRelocations: 378 NumberOfLinenumbers: 079 CheckSum: 330633623680 Number: 381 - Name: func182 Value: 083 SectionNumber: 184 SimpleType: IMAGE_SYM_TYPE_NULL85 ComplexType: IMAGE_SYM_DTYPE_FUNCTION86 StorageClass: IMAGE_SYM_CLASS_EXTERNAL87 - Name: other88 Value: 089 SectionNumber: 090 SimpleType: IMAGE_SYM_TYPE_NULL91 ComplexType: IMAGE_SYM_DTYPE_NULL92 StorageClass: IMAGE_SYM_CLASS_EXTERNAL93 - Name: func294 Value: 2095 SectionNumber: 196 SimpleType: IMAGE_SYM_TYPE_NULL97 ComplexType: IMAGE_SYM_DTYPE_FUNCTION98 StorageClass: IMAGE_SYM_CLASS_EXTERNAL99...100