llvm-project
39 строк · 1.2 Кб
1# RUN: sed -e s/ENTRYNAME/mainCRTStartup/ %s | yaml2obj > %t.obj
2# RUN: lld-link /subsystem:console /out:%t.exe %t.obj /verbose /nodefaultlib > %t.log 2>&1
3# RUN: FileCheck %s < %t.log
4
5# RUN: sed -e s/ENTRYNAME/?mainCRTStartup@@YAHXZ/ %s | yaml2obj > %t.obj
6# RUN: lld-link /subsystem:console /out:%t.exe %t.obj /verbose /nodefaultlib > %t.log 2>&1
7# RUN: FileCheck %s < %t.log
8
9# CHECK: Entry name inferred: mainCRTStartup
10
11--- !COFF
12header:
13Machine: IMAGE_FILE_MACHINE_AMD64
14Characteristics: []
15sections:
16- Name: .text
17Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
18Alignment: 4
19SectionData: B82A000000C3
20symbols:
21- Name: .text
22Value: 0
23SectionNumber: 1
24SimpleType: IMAGE_SYM_TYPE_NULL
25ComplexType: IMAGE_SYM_DTYPE_NULL
26StorageClass: IMAGE_SYM_CLASS_STATIC
27SectionDefinition:
28Length: 6
29NumberOfRelocations: 0
30NumberOfLinenumbers: 0
31CheckSum: 0
32Number: 0
33- Name: "ENTRYNAME"
34Value: 0
35SectionNumber: 1
36SimpleType: IMAGE_SYM_TYPE_NULL
37ComplexType: IMAGE_SYM_DTYPE_NULL
38StorageClass: IMAGE_SYM_CLASS_EXTERNAL
39...
40