90 lines · yaml
1# RUN: yaml2obj %s -o %t.obj2# RUN: env LLD_IN_TEST=1 not lld-link /out:%t.exe /entry:func1 /subsystem:console %t.obj 2>&1 | FileCheck %s3 4# This file is like pdata-arm64.yaml, except that .pdata has been extended with5# 4 bytes. This can happen due to for example bad assembler input. Check that6# lld errors gracefully instead of crashing.7 8# CHECK: unexpected .pdata size: 20 is not a multiple of 89 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: ff4300d1f37b00a9f303012a00000094e003132a00000094f37b40a9ff430091c0035fd6f353bea9fe0b00f9f303012af403022a00000094e003132a00000094e003142a00000094fe0b40f9f353c2a8c0035fd6c0035fd619 Relocations:20 - VirtualAddress: 1221 SymbolName: func322 Type: IMAGE_REL_ARM64_BRANCH2623 - VirtualAddress: 2024 SymbolName: func325 Type: IMAGE_REL_ARM64_BRANCH2626 - VirtualAddress: 5227 SymbolName: func328 Type: IMAGE_REL_ARM64_BRANCH2629 - VirtualAddress: 6030 SymbolName: func331 Type: IMAGE_REL_ARM64_BRANCH2632 - VirtualAddress: 6833 SymbolName: func334 Type: IMAGE_REL_ARM64_BRANCH2635 - Name: .pdata36 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]37 Alignment: 438 SectionData: 0000000031002201000000002500a1000000000039 Relocations:40 - VirtualAddress: 041 SymbolName: func242 Type: IMAGE_REL_ARM64_ADDR32NB43 - VirtualAddress: 844 SymbolName: func145 Type: IMAGE_REL_ARM64_ADDR32NB46symbols:47 - Name: .text48 Value: 049 SectionNumber: 150 SimpleType: IMAGE_SYM_TYPE_NULL51 ComplexType: IMAGE_SYM_DTYPE_NULL52 StorageClass: IMAGE_SYM_CLASS_STATIC53 SectionDefinition:54 Length: 5755 NumberOfRelocations: 056 NumberOfLinenumbers: 057 CheckSum: 058 Number: 159 - Name: .pdata60 Value: 061 SectionNumber: 262 SimpleType: IMAGE_SYM_TYPE_NULL63 ComplexType: IMAGE_SYM_DTYPE_NULL64 StorageClass: IMAGE_SYM_CLASS_STATIC65 SectionDefinition:66 Length: 2067 NumberOfRelocations: 268 NumberOfLinenumbers: 069 CheckSum: 070 Number: 271 - Name: func172 Value: 073 SectionNumber: 174 SimpleType: IMAGE_SYM_TYPE_NULL75 ComplexType: IMAGE_SYM_DTYPE_FUNCTION76 StorageClass: IMAGE_SYM_CLASS_EXTERNAL77 - Name: func278 Value: 3679 SectionNumber: 180 SimpleType: IMAGE_SYM_TYPE_NULL81 ComplexType: IMAGE_SYM_DTYPE_FUNCTION82 StorageClass: IMAGE_SYM_CLASS_EXTERNAL83 - Name: func384 Value: 8485 SectionNumber: 186 SimpleType: IMAGE_SYM_TYPE_NULL87 ComplexType: IMAGE_SYM_DTYPE_NULL88 StorageClass: IMAGE_SYM_CLASS_EXTERNAL89...90