1## Check that we print the external symbol "func1" and "func2", even though 2## the pdata relocations point at .text with an immediate offset. 3 4# RUN: yaml2obj %s -o %t.obj 5# RUN: llvm-readobj --unwind %t.obj | FileCheck %s 6 7# CHECK: Function: func1 (0x0) 8# CHECK: Function: func2 (0x14) 9 10--- !COFF 11header: 12 Machine: IMAGE_FILE_MACHINE_ARM64 13 Characteristics: [ ] 14sections: 15 - Name: .text 16 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ] 17 Alignment: 4 18 SectionData: FE0F1FF8E133009100000094FE0741F8C0035FD6FF8300D1F60B00F9FE0F00F9E1330091E0031FAA00000094FE0F40F9F60B40F9FF830091C0035FD6 19 Relocations: 20 - VirtualAddress: 8 21 SymbolName: other 22 Type: IMAGE_REL_ARM64_BRANCH26 23 - VirtualAddress: 40 24 SymbolName: other 25 Type: IMAGE_REL_ARM64_BRANCH26 26 - Name: .xdata 27 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ] 28 Alignment: 4 29 SectionData: 0A002010D2C3D0C202E4E3E3 30 - Name: .pdata 31 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ] 32 Alignment: 4 33 SectionData: 000000001500A0001400000000000000 34 Relocations: 35 - VirtualAddress: 0 36 SymbolName: .text 37 Type: IMAGE_REL_ARM64_ADDR32NB 38 - VirtualAddress: 8 39 SymbolName: .text 40 Type: IMAGE_REL_ARM64_ADDR32NB 41 - VirtualAddress: 12 42 SymbolName: .xdata 43 Type: IMAGE_REL_ARM64_ADDR32NB 44symbols: 45 - Name: .text 46 Value: 0 47 SectionNumber: 1 48 SimpleType: IMAGE_SYM_TYPE_NULL 49 ComplexType: IMAGE_SYM_DTYPE_NULL 50 StorageClass: IMAGE_SYM_CLASS_STATIC 51 SectionDefinition: 52 Length: 60 53 NumberOfRelocations: 2 54 NumberOfLinenumbers: 0 55 CheckSum: 2313530660 56 Number: 1 57 - Name: .xdata 58 Value: 0 59 SectionNumber: 2 60 SimpleType: IMAGE_SYM_TYPE_NULL 61 ComplexType: IMAGE_SYM_DTYPE_NULL 62 StorageClass: IMAGE_SYM_CLASS_STATIC 63 SectionDefinition: 64 Length: 12 65 NumberOfRelocations: 0 66 NumberOfLinenumbers: 0 67 CheckSum: 2034129209 68 Number: 2 69 - Name: .pdata 70 Value: 0 71 SectionNumber: 3 72 SimpleType: IMAGE_SYM_TYPE_NULL 73 ComplexType: IMAGE_SYM_DTYPE_NULL 74 StorageClass: IMAGE_SYM_CLASS_STATIC 75 SectionDefinition: 76 Length: 16 77 NumberOfRelocations: 3 78 NumberOfLinenumbers: 0 79 CheckSum: 3306336236 80 Number: 3 81 - Name: func1 82 Value: 0 83 SectionNumber: 1 84 SimpleType: IMAGE_SYM_TYPE_NULL 85 ComplexType: IMAGE_SYM_DTYPE_FUNCTION 86 StorageClass: IMAGE_SYM_CLASS_EXTERNAL 87 - Name: other 88 Value: 0 89 SectionNumber: 0 90 SimpleType: IMAGE_SYM_TYPE_NULL 91 ComplexType: IMAGE_SYM_DTYPE_NULL 92 StorageClass: IMAGE_SYM_CLASS_EXTERNAL 93 - Name: func2 94 Value: 20 95 SectionNumber: 1 96 SimpleType: IMAGE_SYM_TYPE_NULL 97 ComplexType: IMAGE_SYM_DTYPE_FUNCTION 98 StorageClass: IMAGE_SYM_CLASS_EXTERNAL 99... 100