1 # RUN: yaml2obj %s -o %t.obj
2 # RUN: lld-link /out:%t.exe /entry:mainCRTStartup /subsystem:console %t.obj
3 # RUN: llvm-readobj --file-headers %t.exe | FileCheck %s
5 # CHECK: Format: COFF-ARM64
7 # CHECK: AddressSize: 64bit
8 # CHECK: ImageFileHeader {
9 # CHECK: Machine: IMAGE_FILE_MACHINE_ARM64 (0xAA64)
10 # CHECK: Characteristics [ (0x22)
11 # CHECK: IMAGE_FILE_EXECUTABLE_IMAGE (0x2)
12 # CHECK: IMAGE_FILE_LARGE_ADDRESS_AWARE (0x20)
15 # CHECK: ImageOptionalHeader {
20 Machine: IMAGE_FILE_MACHINE_ARM64
24 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_PURGEABLE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
26 SectionData: 'e0031f2ac0035fd6'
31 SimpleType: IMAGE_SYM_TYPE_NULL
32 ComplexType: IMAGE_SYM_DTYPE_NULL
33 StorageClass: IMAGE_SYM_CLASS_STATIC
36 NumberOfRelocations: 0
37 NumberOfLinenumbers: 0
40 - Name: mainCRTStartup
43 SimpleType: IMAGE_SYM_TYPE_NULL
44 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
45 StorageClass: IMAGE_SYM_CLASS_EXTERNAL