comparison lld/test/COFF/loadcfg32.test @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children 2e18cbf3894f
comparison
equal deleted inserted replaced
147:c2174574ed3a 150:1d019706d866
1 # RUN: yaml2obj < %s > %t.obj
2 # RUN: lld-link -safeseh:no /out:%t.exe %t.obj /entry:main /subsystem:console
3 # RUN: llvm-readobj --file-headers %t.exe | FileCheck %s
4
5 # CHECK: LoadConfigTableRVA: 0x2000
6 # CHECK: LoadConfigTableSize: 0x40
7
8 --- !COFF
9 header:
10 Machine: IMAGE_FILE_MACHINE_I386
11 Characteristics: []
12 sections:
13 - Name: .text
14 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
15 Alignment: 4
16 SectionData: B82A000000C3
17 - Name: .rdata
18 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
19 Alignment: 4
20 SectionData: '40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
21 symbols:
22 - Name: .text
23 Value: 0
24 SectionNumber: 1
25 SimpleType: IMAGE_SYM_TYPE_NULL
26 ComplexType: IMAGE_SYM_DTYPE_NULL
27 StorageClass: IMAGE_SYM_CLASS_STATIC
28 SectionDefinition:
29 Length: 6
30 NumberOfRelocations: 0
31 NumberOfLinenumbers: 0
32 CheckSum: 0
33 Number: 0
34 - Name: _main
35 Value: 0
36 SectionNumber: 1
37 SimpleType: IMAGE_SYM_TYPE_NULL
38 ComplexType: IMAGE_SYM_DTYPE_NULL
39 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
40 - Name: .rdata
41 Value: 0
42 SectionNumber: 2
43 SimpleType: IMAGE_SYM_TYPE_NULL
44 ComplexType: IMAGE_SYM_DTYPE_NULL
45 StorageClass: IMAGE_SYM_CLASS_STATIC
46 SectionDefinition:
47 Length: 64
48 NumberOfRelocations: 0
49 NumberOfLinenumbers: 0
50 CheckSum: 0
51 Number: 2
52 - Name: __load_config_used
53 Value: 0
54 SectionNumber: 2
55 SimpleType: IMAGE_SYM_TYPE_NULL
56 ComplexType: IMAGE_SYM_DTYPE_NULL
57 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
58 ...