## Check that we print the external symbol "func1" and "func2", even though ## the pdata relocations point at .text with an immediate offset. # RUN: yaml2obj %s -o %t.obj # RUN: llvm-readobj --unwind %t.obj | FileCheck %s # CHECK: Function: func1 (0x0) # CHECK: Function: func2 (0x14) --- !COFF header: Machine: IMAGE_FILE_MACHINE_ARM64 Characteristics: [ ] sections: - Name: .text Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ] Alignment: 4 SectionData: FE0F1FF8E133009100000094FE0741F8C0035FD6FF8300D1F60B00F9FE0F00F9E1330091E0031FAA00000094FE0F40F9F60B40F9FF830091C0035FD6 Relocations: - VirtualAddress: 8 SymbolName: other Type: IMAGE_REL_ARM64_BRANCH26 - VirtualAddress: 40 SymbolName: other Type: IMAGE_REL_ARM64_BRANCH26 - Name: .xdata Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ] Alignment: 4 SectionData: 0A002010D2C3D0C202E4E3E3 - Name: .pdata Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ] Alignment: 4 SectionData: 000000001500A0001400000000000000 Relocations: - VirtualAddress: 0 SymbolName: .text Type: IMAGE_REL_ARM64_ADDR32NB - VirtualAddress: 8 SymbolName: .text Type: IMAGE_REL_ARM64_ADDR32NB - VirtualAddress: 12 SymbolName: .xdata Type: IMAGE_REL_ARM64_ADDR32NB symbols: - Name: .text Value: 0 SectionNumber: 1 SimpleType: IMAGE_SYM_TYPE_NULL ComplexType: IMAGE_SYM_DTYPE_NULL StorageClass: IMAGE_SYM_CLASS_STATIC SectionDefinition: Length: 60 NumberOfRelocations: 2 NumberOfLinenumbers: 0 CheckSum: 2313530660 Number: 1 - Name: .xdata Value: 0 SectionNumber: 2 SimpleType: IMAGE_SYM_TYPE_NULL ComplexType: IMAGE_SYM_DTYPE_NULL StorageClass: IMAGE_SYM_CLASS_STATIC SectionDefinition: Length: 12 NumberOfRelocations: 0 NumberOfLinenumbers: 0 CheckSum: 2034129209 Number: 2 - Name: .pdata Value: 0 SectionNumber: 3 SimpleType: IMAGE_SYM_TYPE_NULL ComplexType: IMAGE_SYM_DTYPE_NULL StorageClass: IMAGE_SYM_CLASS_STATIC SectionDefinition: Length: 16 NumberOfRelocations: 3 NumberOfLinenumbers: 0 CheckSum: 3306336236 Number: 3 - Name: func1 Value: 0 SectionNumber: 1 SimpleType: IMAGE_SYM_TYPE_NULL ComplexType: IMAGE_SYM_DTYPE_FUNCTION StorageClass: IMAGE_SYM_CLASS_EXTERNAL - Name: other Value: 0 SectionNumber: 0 SimpleType: IMAGE_SYM_TYPE_NULL ComplexType: IMAGE_SYM_DTYPE_NULL StorageClass: IMAGE_SYM_CLASS_EXTERNAL - Name: func2 Value: 20 SectionNumber: 1 SimpleType: IMAGE_SYM_TYPE_NULL ComplexType: IMAGE_SYM_DTYPE_FUNCTION StorageClass: IMAGE_SYM_CLASS_EXTERNAL ...