2 # RUN: yaml2obj %s -o %t.obj
3 # RUN: lld-link -safeseh:no /out:%t.exe /entry:main /base:0x400000 %t.obj
4 # RUN: llvm-objdump -d %t.exe | FileCheck %s
7 # CHECK: 1000: a1 00 00 00 00
8 # CHECK: 1005: a1 03 20 40 00
9 # CHECK: 100a: a1 03 20 00 00
10 # CHECK: 100f: a1 ef 0f 00 00
11 # CHECK: 1014: a1 00 00 02 00
12 # CHECK: 1019: a1 03 00 00 00
16 Machine: IMAGE_FILE_MACHINE_I386
20 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
22 SectionData: A100000000A100000000A100000000A100000000A100000000A100000000
26 Type: IMAGE_REL_I386_ABSOLUTE
29 Type: IMAGE_REL_I386_DIR32
32 Type: IMAGE_REL_I386_DIR32NB
35 Type: IMAGE_REL_I386_REL32
38 Type: IMAGE_REL_I386_SECTION
41 Type: IMAGE_REL_I386_SECREL
43 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
45 SectionData: 0000000000000000
50 SimpleType: IMAGE_SYM_TYPE_NULL
51 ComplexType: IMAGE_SYM_DTYPE_NULL
52 StorageClass: IMAGE_SYM_CLASS_STATIC
55 NumberOfRelocations: 0
56 NumberOfLinenumbers: 0
62 SimpleType: IMAGE_SYM_TYPE_NULL
63 ComplexType: IMAGE_SYM_DTYPE_NULL
64 StorageClass: IMAGE_SYM_CLASS_STATIC
67 NumberOfRelocations: 0
68 NumberOfLinenumbers: 0
74 SimpleType: IMAGE_SYM_TYPE_NULL
75 ComplexType: IMAGE_SYM_DTYPE_NULL
76 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
80 SimpleType: IMAGE_SYM_TYPE_NULL
81 ComplexType: IMAGE_SYM_DTYPE_NULL
82 StorageClass: IMAGE_SYM_CLASS_EXTERNAL