1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-readobj --coff-exports %t | FileCheck %s
5 # CHECK-NEXT: Ordinal: 1
6 # CHECK-NEXT: Name: LoadLibrary
7 # CHECK-NEXT: ForwardedTo: kernel32.LoadLibrary
10 # Test file generated with:
11 # clang -O2 --target=x86_64-windows-msvc test.c -nostdlib -c -o test.obj
12 # lld-link -dll -out:test.dll -entry:entry -export:LoadLibrary=kernel32.LoadLibrary test.obj
18 AddressOfEntryPoint: 4096
20 SectionAlignment: 4096
22 MajorOperatingSystemVersion: 6
23 MinorOperatingSystemVersion: 0
26 MajorSubsystemVersion: 6
27 MinorSubsystemVersion: 0
28 Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI
29 DLLCharacteristics: [ IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA, IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT ]
30 SizeOfStackReserve: 1048576
31 SizeOfStackCommit: 4096
32 SizeOfHeapReserve: 1048576
33 SizeOfHeapCommit: 4096
35 RelativeVirtualAddress: 8192
38 Machine: IMAGE_FILE_MACHINE_AMD64
39 Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_LARGE_ADDRESS_AWARE, IMAGE_FILE_DLL ]
42 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
47 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
50 SectionData: 0000000000000000000000002820000001000000010000000100000043200000472000004B2000006578706F72742D666F727761726465722E632E746D702E646C6C00592000004D20000000004C6F61644C696272617279006B65726E656C33322E4C6F61644C69627261727900