1# RUN: yaml2obj < %s > %t.obj
2# RUN: lld-link -safeseh:no /subsystem:console /out:%t.exe %t.obj
3
4--- !COFF
5header:
6  Machine:         IMAGE_FILE_MACHINE_I386
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:     B800000000506800000000680000000050E80000000050E800000000
13  - Name:            .drectve
14    Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
15    Alignment:       1
16    SectionData:     2f656e7472793a437573746f6d456e74727900 # /entry:CustomEntry
17symbols:
18  - Name:            _CustomEntry
19    Value:           0
20    SectionNumber:   1
21    SimpleType:      IMAGE_SYM_TYPE_NULL
22    ComplexType:     IMAGE_SYM_DTYPE_NULL
23    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
24...
25