1RUN: llvm-readobj --coff-load-config %S/Inputs/coff-load-config-x86.dll | FileCheck %s --check-prefix=X86
2RUN: llvm-readobj --coff-load-config %S/Inputs/coff-load-config-x64.dll | FileCheck %s --check-prefix=X64
3
4RUN: llvm-readobj --coff-load-config %S/Inputs/coff-load-config-data-end.exe | FileCheck %s --check-prefix=DATAEND
5
6RUN: llvm-readobj --coff-load-config %S/Inputs/coff-no-load-config.exe | FileCheck %s --check-prefix=NOCONFIG
7
8X86: LoadConfig [
9X86:   Size: 0x5C
10X86:   TimeDateStamp: 1970-01-01 00:00:00 (0x0)
11X86:   MajorVersion: 0x0
12X86:   MinorVersion: 0x0
13X86:   GlobalFlagsClear: 0x0
14X86:   GlobalFlagsSet: 0x0
15X86:   CriticalSectionDefaultTimeout: 0x0
16X86:   DeCommitFreeBlockThreshold: 0x0
17X86:   DeCommitTotalFreeThreshold: 0x0
18X86:   LockPrefixTable: 0x0
19X86:   MaximumAllocationSize: 0x0
20X86:   VirtualMemoryThreshold: 0x0
21X86:   ProcessHeapFlags: 0x0
22X86:   ProcessAffinityMask: 0x0
23X86:   CSDVersion: 0x0
24X86:   DependentLoadFlags: 0x0
25X86:   EditList: 0x0
26X86:   SecurityCookie: 0x10003004
27X86:   SEHandlerTable: 0x100021C0
28X86:   SEHandlerCount: 2
29X86:   GuardCFCheckFunction: 0x1000207C
30X86:   GuardCFCheckDispatch: 0x0
31X86:   GuardCFFunctionTable: 0x100020A4
32X86:   GuardCFFunctionCount: 11
33X86:   GuardFlags: 0x13500
34X86: ]
35X86: SEHTable [
36X86:   0x10001BE0
37X86:   0x10001E30
38X86: ]
39X86: GuardFidTable [
40X86:   0x10001000
41X86:   0x10001040
42X86:   0x10001060
43X86:   0x10001100
44X86:   0x10001120
45X86:   0x10001150
46X86:   0x10001460
47X86:   0x100019B0
48X86:   0x10001B40
49X86:   0x10001BE0
50X86:   0x10001DC0
51X86: ]
52
53X64: LoadConfig [
54X64:   Size: 0x94
55X64:   TimeDateStamp: 1970-01-01 00:00:00 (0x0)
56X64:   MajorVersion: 0x0
57X64:   MinorVersion: 0x0
58X64:   GlobalFlagsClear: 0x0
59X64:   GlobalFlagsSet: 0x0
60X64:   CriticalSectionDefaultTimeout: 0x0
61X64:   DeCommitFreeBlockThreshold: 0x0
62X64:   DeCommitTotalFreeThreshold: 0x0
63X64:   LockPrefixTable: 0x0
64X64:   MaximumAllocationSize: 0x0
65X64:   VirtualMemoryThreshold: 0x0
66X64:   ProcessHeapFlags: 0x0
67X64:   ProcessAffinityMask: 0x0
68X64:   CSDVersion: 0x0
69X64:   DependentLoadFlags: 0x0
70X64:   EditList: 0x0
71X64:   SecurityCookie: 0x180003018
72X64:   SEHandlerTable: 0
73X64:   SEHandlerCount: 0
74X64:   GuardCFCheckFunction: 0x180002100
75X64:   GuardCFCheckDispatch: 0x180002108
76X64:   GuardCFFunctionTable: 0x180002158
77X64:   GuardCFFunctionCount: 9
78X64:   GuardFlags: 0x13500
79X64: ]
80X64-NOT: SEHTable
81X64: GuardFidTable [
82X64:   0x180001000
83X64:   0x180001050
84X64:   0x180001070
85X64:   0x1800010E0
86X64:   0x180001110
87X64:   0x180001460
88X64:   0x180001970
89X64:   0x180001B50
90X64:   0x180001D90
91X64: ]
92
93DATAEND: SEHTable [
94DATAEND-NEXT:   0x402006
95DATAEND-NEXT: ]
96
97NOCONFIG: Format: COFF-x86-64
98NOCONFIG-NOT: LoadConfig
99