1 # RUN: yaml2obj %s -o %t.obj
2 # RUN: env LLD_IN_TEST=1 not lld-link /out:%t.exe /entry:func1 /subsystem:console %t.obj 2>&1 | FileCheck %s
4 # This file is like pdata-arm64.yaml, except that .pdata has been extended with
5 # 4 bytes. This can happen due to for example bad assembler input. Check that
6 # lld errors gracefully instead of crashing.
8 # CHECK: unexpected .pdata size: 20 is not a multiple of 8
12 Machine: IMAGE_FILE_MACHINE_ARM64
16 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
18 SectionData: ff4300d1f37b00a9f303012a00000094e003132a00000094f37b40a9ff430091c0035fd6f353bea9fe0b00f9f303012af403022a00000094e003132a00000094e003142a00000094fe0b40f9f353c2a8c0035fd6c0035fd6
22 Type: IMAGE_REL_ARM64_BRANCH26
25 Type: IMAGE_REL_ARM64_BRANCH26
28 Type: IMAGE_REL_ARM64_BRANCH26
31 Type: IMAGE_REL_ARM64_BRANCH26
34 Type: IMAGE_REL_ARM64_BRANCH26
36 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
38 SectionData: 0000000031002201000000002500a10000000000
42 Type: IMAGE_REL_ARM64_ADDR32NB
45 Type: IMAGE_REL_ARM64_ADDR32NB
50 SimpleType: IMAGE_SYM_TYPE_NULL
51 ComplexType: IMAGE_SYM_DTYPE_NULL
52 StorageClass: IMAGE_SYM_CLASS_STATIC
55 NumberOfRelocations: 0
56 NumberOfLinenumbers: 0
62 SimpleType: IMAGE_SYM_TYPE_NULL
63 ComplexType: IMAGE_SYM_DTYPE_NULL
64 StorageClass: IMAGE_SYM_CLASS_STATIC
67 NumberOfRelocations: 2
68 NumberOfLinenumbers: 0
74 SimpleType: IMAGE_SYM_TYPE_NULL
75 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
76 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
80 SimpleType: IMAGE_SYM_TYPE_NULL
81 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
82 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
86 SimpleType: IMAGE_SYM_TYPE_NULL
87 ComplexType: IMAGE_SYM_DTYPE_NULL
88 StorageClass: IMAGE_SYM_CLASS_EXTERNAL