• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %s > %t
2# RUN: llvm-objdump -f %t | FileCheck %s
3# RUN: llvm-objdump -file-headers %t | FileCheck %s
4
5!COFF
6header: !Header
7  Machine: IMAGE_FILE_MACHINE_I386
8  Characteristics: [ IMAGE_FILE_DEBUG_STRIPPED ]
9OptionalHeader:
10  AddressOfEntryPoint: 0x1234
11# Unfortunately, all these flags are mandatory to set AddressOfEntryPoint.
12# All the values are randomly picked. They can't interfere in what
13# we are testing here.
14  SizeOfHeapCommit: 1024
15  SizeOfHeapReserve: 1024
16  SizeOfStackCommit: 1024
17  SizeOfStackReserve: 1024
18  DLLCharacteristics: [ IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE ]
19  Subsystem: IMAGE_SUBSYSTEM_NATIVE
20  MinorSubsystemVersion: 1
21  MajorSubsystemVersion: 1
22  MinorImageVersion: 1
23  MajorImageVersion: 1
24  MinorOperatingSystemVersion: 1
25  MajorOperatingSystemVersion: 1
26  FileAlignment: 8
27  SectionAlignment: 8
28  ImageBase: 0x12
29sections:
30symbols:
31
32# CHECK: architecture: i386
33# CHECK: start address: 0x1234
34