llvm-project
51 строка · 1.5 Кб
1# RUN: yaml2obj %s -o %t.obj
2
3# RUN: lld-link /out:%t.exe /entry:main %t.obj
4# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=DEFAULT-HEADER %s
5
6# DEFAULT-HEADER: FileAlignment: 512
7
8# RUN: lld-link /out:%t.exe /entry:main %t.obj /filealign:4096
9# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=FILEALIGN-HEADER %s
10
11# FILEALIGN-HEADER: FileAlignment: 4096
12
13--- !COFF
14header:
15Machine: IMAGE_FILE_MACHINE_AMD64
16Characteristics: []
17sections:
18- Name: .text
19Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
20Alignment: 4096
21SectionData: 0000000000000000
22Relocations:
23- VirtualAddress: 0
24SymbolName: __ImageBase
25Type: IMAGE_REL_AMD64_ADDR64
26symbols:
27- Name: .text
28Value: 0
29SectionNumber: 1
30SimpleType: IMAGE_SYM_TYPE_NULL
31ComplexType: IMAGE_SYM_DTYPE_NULL
32StorageClass: IMAGE_SYM_CLASS_STATIC
33SectionDefinition:
34Length: 8
35NumberOfRelocations: 1
36NumberOfLinenumbers: 0
37CheckSum: 0
38Number: 0
39- Name: main
40Value: 0
41SectionNumber: 1
42SimpleType: IMAGE_SYM_TYPE_NULL
43ComplexType: IMAGE_SYM_DTYPE_NULL
44StorageClass: IMAGE_SYM_CLASS_EXTERNAL
45- Name: __ImageBase
46Value: 0
47SectionNumber: 0
48SimpleType: IMAGE_SYM_TYPE_NULL
49ComplexType: IMAGE_SYM_DTYPE_NULL
50StorageClass: IMAGE_SYM_CLASS_EXTERNAL
51...
52