blob: 8860affaaa5c6861957418f4c8bcd0f548a3444d [file] [log] [blame]
Fangrui Songb587ca92020-08-20 22:00:251# RUN: yaml2obj %s -o %t.obj
Alexandre Ganea45b8a742020-11-12 13:14:202# RUN: env LLD_IN_TEST=1 not lld-link %t.obj 2>&1 | FileCheck %s
Rui Ueyama7e95d9e2018-07-24 22:52:113
4# CHECK: foo should not refer to special section -10
5
6--- !COFF
7header:
8 Machine: IMAGE_FILE_MACHINE_I386
9 Characteristics: []
10sections:
11 - Name: .text
12 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
13 Alignment: 4
14 SectionData: B82A000000C3
15symbols:
16 - Name: .text
17 Value: 0
18 SectionNumber: 1
19 SimpleType: IMAGE_SYM_TYPE_NULL
20 ComplexType: IMAGE_SYM_DTYPE_NULL
21 StorageClass: IMAGE_SYM_CLASS_STATIC
22 SectionDefinition:
23 Length: 6
24 NumberOfRelocations: 0
25 NumberOfLinenumbers: 0
26 CheckSum: 0
27 Number: 0
28 - Name: foo
29 Value: 0
30 SectionNumber: -10
31 SimpleType: IMAGE_SYM_TYPE_NULL
32 ComplexType: IMAGE_SYM_DTYPE_NULL
33 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
34...