1 # RUN: yaml2obj %s -o %t.obj
2 # RUN: lld-link -safeseh:no /out:%t.exe /entry:main %t.obj
3 # RUN: llvm-objdump -s %t.exe | FileCheck %s
5 # CHECK: Contents of section .text:
6 # CHECK-NEXT: 1000 00200000
8 # CHECK: Contents of section .rdata:
9 # CHECK-NEXT: 2000 04104000
13 Machine: IMAGE_FILE_MACHINE_I386
17 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
22 SymbolName: __imp__main
23 Type: IMAGE_REL_I386_DIR32NB
28 SimpleType: IMAGE_SYM_TYPE_NULL
29 ComplexType: IMAGE_SYM_DTYPE_NULL
30 StorageClass: IMAGE_SYM_CLASS_STATIC
33 NumberOfRelocations: 1
34 NumberOfLinenumbers: 0
37 Selection: IMAGE_COMDAT_SELECT_ANY
41 SimpleType: IMAGE_SYM_TYPE_NULL
42 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
43 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
47 SimpleType: IMAGE_SYM_TYPE_NULL
48 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
49 StorageClass: IMAGE_SYM_CLASS_EXTERNAL