1 # Make sure LLD does some light relocation bounds checking.
3 # RUN: yaml2obj %s -o %t.obj
4 # RUN: not lld-link %t.obj -entry:main -nodefaultlib -out:%t.exe 2>&1 | FileCheck %s
6 # CHECK: error: relocation points beyond the end of its parent section
10 Machine: IMAGE_FILE_MACHINE_I386
14 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
16 SectionData: 5589E550C745FC00000000A10000000083C4045DC3
20 Type: IMAGE_REL_I386_DIR32
22 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
29 SimpleType: IMAGE_SYM_TYPE_NULL
30 ComplexType: IMAGE_SYM_DTYPE_NULL
31 StorageClass: IMAGE_SYM_CLASS_STATIC
34 NumberOfRelocations: 1
35 NumberOfLinenumbers: 0
41 SimpleType: IMAGE_SYM_TYPE_NULL
42 ComplexType: IMAGE_SYM_DTYPE_NULL
43 StorageClass: IMAGE_SYM_CLASS_STATIC
46 NumberOfRelocations: 0
47 NumberOfLinenumbers: 0
53 SimpleType: IMAGE_SYM_TYPE_NULL
54 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
55 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
59 SimpleType: IMAGE_SYM_TYPE_NULL
60 ComplexType: IMAGE_SYM_DTYPE_NULL
61 StorageClass: IMAGE_SYM_CLASS_EXTERNAL