44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
## Currently COFF files aren't supported.
|
|
# RUN: yaml2obj %s -o %t.obj
|
|
# RUN: llvm-tli-checker %t.obj 2>&1 | FileCheck %s
|
|
#
|
|
# CHECK: only ELF-format files are supported
|
|
# CHECK: no symbols found
|
|
# CHECK: NO symbols found!
|
|
|
|
## Minimal COFF input.
|
|
--- !COFF
|
|
OptionalHeader:
|
|
AddressOfEntryPoint: 4144
|
|
ImageBase: 1073741824
|
|
SectionAlignment: 4096
|
|
FileAlignment: 512
|
|
MajorOperatingSystemVersion: 6
|
|
MinorOperatingSystemVersion: 0
|
|
MajorImageVersion: 0
|
|
MinorImageVersion: 0
|
|
MajorSubsystemVersion: 6
|
|
MinorSubsystemVersion: 0
|
|
Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI
|
|
DLLCharacteristics: [ ]
|
|
SizeOfStackReserve: 1048576
|
|
SizeOfStackCommit: 4096
|
|
SizeOfHeapReserve: 1048576
|
|
SizeOfHeapCommit: 4096
|
|
header:
|
|
Machine: IMAGE_FILE_MACHINE_AMD64
|
|
Characteristics: [ ]
|
|
sections:
|
|
- Name: .text
|
|
Characteristics: [ IMAGE_SCN_CNT_CODE ]
|
|
VirtualAddress: 4096
|
|
VirtualSize: 4
|
|
SectionData: C3C3C3C3
|
|
symbols:
|
|
- Name: main
|
|
Value: 2
|
|
SectionNumber: 1
|
|
SimpleType: IMAGE_SYM_TYPE_NULL
|
|
ComplexType: IMAGE_SYM_DTYPE_FUNCTION
|
|
StorageClass: IMAGE_SYM_CLASS_EXTERNAL
|