1 # RUN: yaml2obj %p/Inputs/hello32.yaml -o %t.obj
2 # RUN: lld-link -safeseh:no %t.obj %p/Inputs/std32.lib /subsystem:console \
3 # RUN: /entry:main@0 /out:%t.exe /largeaddressaware
4 # RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=HEADER %s
6 HEADER: Format: COFF-i386
7 HEADER-NEXT: Arch: i386
8 HEADER-NEXT: AddressSize: 32bit
9 HEADER-NEXT: ImageFileHeader {
10 HEADER-NEXT: Machine: IMAGE_FILE_MACHINE_I386 (0x14C)
11 HEADER-NEXT: SectionCount: 4
12 HEADER-NEXT: TimeDateStamp:
13 HEADER-NEXT: PointerToSymbolTable: 0x0
14 HEADER-NEXT: SymbolCount: 0
15 HEADER-NEXT: StringTableSize: 0
16 HEADER-NEXT: OptionalHeaderSize: 224
17 HEADER-NEXT: Characteristics [ (0x122)
18 HEADER-NEXT: IMAGE_FILE_32BIT_MACHINE (0x100)
19 HEADER-NEXT: IMAGE_FILE_EXECUTABLE_IMAGE (0x2)
20 HEADER-NEXT: IMAGE_FILE_LARGE_ADDRESS_AWARE (0x20)