1# RUN: yaml2obj < %s > %t.obj
2# RUN: lld-link /entry:main /out:%t.exe %t.obj
3
4--- !COFF
5header:
6  Machine:         IMAGE_FILE_MACHINE_AMD64
7  Characteristics: []
8sections:
9  - Name:            .text
10    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
11    Alignment:       4
12    SectionData:     000000000000
13symbols:
14  - Name:            .text
15    Value:           0
16    SectionNumber:   1
17    SimpleType:      IMAGE_SYM_TYPE_NULL
18    ComplexType:     IMAGE_SYM_DTYPE_NULL
19    StorageClass:    IMAGE_SYM_CLASS_STATIC
20    SectionDefinition:
21      Length:          6
22      NumberOfRelocations: 0
23      NumberOfLinenumbers: 0
24      CheckSum:        0
25      Number:          0
26  - Name:            main
27    Value:           0
28    SectionNumber:   1
29    SimpleType:      IMAGE_SYM_TYPE_NULL
30    ComplexType:     IMAGE_SYM_DTYPE_NULL
31    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
32  - Name:            __guard_fids_count
33    Value:           0
34    SectionNumber:   0
35    SimpleType:      IMAGE_SYM_TYPE_NULL
36    ComplexType:     IMAGE_SYM_DTYPE_NULL
37    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
38  - Name:            __guard_fids_table
39    Value:           0
40    SectionNumber:   0
41    SimpleType:      IMAGE_SYM_TYPE_NULL
42    ComplexType:     IMAGE_SYM_DTYPE_NULL
43    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
44  - Name:            __guard_flags
45    Value:           0
46    SectionNumber:   0
47    SimpleType:      IMAGE_SYM_TYPE_NULL
48    ComplexType:     IMAGE_SYM_DTYPE_NULL
49    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
50  - Name:            __guard_iat_count
51    Value:           0
52    SectionNumber:   0
53    SimpleType:      IMAGE_SYM_TYPE_NULL
54    ComplexType:     IMAGE_SYM_DTYPE_NULL
55    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
56  - Name:            __guard_iat_table
57    Value:           0
58    SectionNumber:   0
59    SimpleType:      IMAGE_SYM_TYPE_NULL
60    ComplexType:     IMAGE_SYM_DTYPE_NULL
61    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
62  - Name:            __guard_longjmp_count
63    Value:           0
64    SectionNumber:   0
65    SimpleType:      IMAGE_SYM_TYPE_NULL
66    ComplexType:     IMAGE_SYM_DTYPE_NULL
67    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
68  - Name:            __guard_longjmp_table
69    Value:           0
70    SectionNumber:   0
71    SimpleType:      IMAGE_SYM_TYPE_NULL
72    ComplexType:     IMAGE_SYM_DTYPE_NULL
73    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
74  - Name:            __enclave_config
75    Value:           0
76    SectionNumber:   0
77    SimpleType:      IMAGE_SYM_TYPE_NULL
78    ComplexType:     IMAGE_SYM_DTYPE_NULL
79    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
80...
81