1 ## Test that llvm-readobj/llvm-readelf shows proper relocation type
2 ## names and values for coff-i386 target.
4 # RUN: yaml2obj %s -o %t-coff-i386.o
5 # RUN: llvm-readobj -r --expand-relocs %t-coff-i386.o | FileCheck %s
7 # CHECK: Type: IMAGE_REL_I386_ABSOLUTE (0)
8 # CHECK: Type: IMAGE_REL_I386_DIR16 (1)
9 # CHECK: Type: IMAGE_REL_I386_REL16 (2)
10 # CHECK: Type: IMAGE_REL_I386_DIR32 (6)
11 # CHECK: Type: IMAGE_REL_I386_DIR32NB (7)
12 # CHECK: Type: IMAGE_REL_I386_SEG12 (9)
13 # CHECK: Type: IMAGE_REL_I386_SECTION (10)
14 # CHECK: Type: IMAGE_REL_I386_SECREL (11)
15 # CHECK: Type: IMAGE_REL_I386_TOKEN (12)
16 # CHECK: Type: IMAGE_REL_I386_SECREL7 (13)
17 # CHECK: Type: IMAGE_REL_I386_REL32 (20)
21 Machine: IMAGE_FILE_MACHINE_I386
25 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
30 Type: IMAGE_REL_I386_ABSOLUTE
32 Type: IMAGE_REL_I386_DIR16
34 Type: IMAGE_REL_I386_REL16
36 Type: IMAGE_REL_I386_DIR32
38 Type: IMAGE_REL_I386_DIR32NB
40 Type: IMAGE_REL_I386_SEG12
42 Type: IMAGE_REL_I386_SECTION
44 Type: IMAGE_REL_I386_SECREL
46 Type: IMAGE_REL_I386_TOKEN
48 Type: IMAGE_REL_I386_SECREL7
50 Type: IMAGE_REL_I386_REL32
55 SimpleType: IMAGE_SYM_TYPE_NULL
56 ComplexType: IMAGE_SYM_DTYPE_NULL
57 StorageClass: IMAGE_SYM_CLASS_STATIC
60 NumberOfRelocations: 11
61 NumberOfLinenumbers: 0