1 # RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
2 # RUN: lld-link /entry:foo /subsystem:console \
3 # RUN: /alternatename:foo=main /out:%t.exe %t.obj
4 # RUN: lld-link /entry:foo /subsystem:console \
5 # RUN: /alternatename:foo=main \
6 # RUN: /alternatename:foo=main \
7 # RUN: /alternatename:nosuchsym1=nosuchsym2 \
8 # RUN: /out:%t.exe %t.obj
10 # RUN: yaml2obj %s -o %t.obj
11 # RUN: lld-link /entry:foo /subsystem:console /out:%t.exe %t.obj
15 Machine: IMAGE_FILE_MACHINE_AMD64
19 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
21 SectionData: B82A000000C3
23 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
27 Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
29 SectionData: 2f616c7465726e6174656e616d653a666f6f3d6d61696e00 # /alternatename:foo=main
34 SimpleType: IMAGE_SYM_TYPE_NULL
35 ComplexType: IMAGE_SYM_DTYPE_NULL
36 StorageClass: IMAGE_SYM_CLASS_STATIC
39 NumberOfRelocations: 0
40 NumberOfLinenumbers: 0
46 SimpleType: IMAGE_SYM_TYPE_NULL
47 ComplexType: IMAGE_SYM_DTYPE_NULL
48 StorageClass: IMAGE_SYM_CLASS_STATIC
51 NumberOfRelocations: 0
52 NumberOfLinenumbers: 0
58 SimpleType: IMAGE_SYM_TYPE_NULL
59 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
60 StorageClass: IMAGE_SYM_CLASS_EXTERNAL