summaryrefslogtreecommitdiffstats
path: root/lld/test/COFF/entry-drectve.test
blob: 0848b0a04aeeef6e8a8b5f5ab6133277a866a08b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# RUN: yaml2obj < %s > %t.obj
# RUN: lld-link -safeseh:no /subsystem:console /out:%t.exe %t.obj

--- !COFF
header:
  Machine:         IMAGE_FILE_MACHINE_I386
  Characteristics: []
sections:
  - Name:            .text
    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
    Alignment:       4
    SectionData:     B800000000506800000000680000000050E80000000050E800000000
  - Name:            .drectve
    Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
    Alignment:       1
    SectionData:     2f656e7472793a437573746f6d456e74727900 # /entry:CustomEntry
symbols:
  - Name:            _CustomEntry
    Value:           0
    SectionNumber:   1
    SimpleType:      IMAGE_SYM_TYPE_NULL
    ComplexType:     IMAGE_SYM_DTYPE_NULL
    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
...
OpenPOWER on IntegriCloud