1 ## Test that llvm-readobj/llvm-readelf shows proper relocation type
2 ## names and values for coff-x64 target.
4 # RUN: yaml2obj %s -o %t-coff-x86_64.o
5 # RUN: llvm-readobj -r --expand-relocs %t-coff-x86_64.o | FileCheck %s
7 # CHECK: Type: IMAGE_REL_AMD64_ABSOLUTE (0)
8 # CHECK: Type: IMAGE_REL_AMD64_ADDR64 (1)
9 # CHECK: Type: IMAGE_REL_AMD64_ADDR32 (2)
10 # CHECK: Type: IMAGE_REL_AMD64_ADDR32NB (3)
11 # CHECK: Type: IMAGE_REL_AMD64_REL32 (4)
12 # CHECK: Type: IMAGE_REL_AMD64_REL32_1 (5)
13 # CHECK: Type: IMAGE_REL_AMD64_REL32_2 (6)
14 # CHECK: Type: IMAGE_REL_AMD64_REL32_3 (7)
15 # CHECK: Type: IMAGE_REL_AMD64_REL32_4 (8)
16 # CHECK: Type: IMAGE_REL_AMD64_REL32_5 (9)
17 # CHECK: Type: IMAGE_REL_AMD64_SECTION (10)
18 # CHECK: Type: IMAGE_REL_AMD64_SECREL (11)
19 # CHECK: Type: IMAGE_REL_AMD64_SECREL7 (12)
20 # CHECK: Type: IMAGE_REL_AMD64_TOKEN (13)
21 # CHECK: Type: IMAGE_REL_AMD64_SREL32 (14)
22 # CHECK: Type: IMAGE_REL_AMD64_PAIR (15)
23 # CHECK: Type: IMAGE_REL_AMD64_SSPAN32 (16)
27 Machine: IMAGE_FILE_MACHINE_AMD64
31 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
36 Type: IMAGE_REL_AMD64_ABSOLUTE
38 Type: IMAGE_REL_AMD64_ADDR64
40 Type: IMAGE_REL_AMD64_ADDR32
42 Type: IMAGE_REL_AMD64_ADDR32NB
44 Type: IMAGE_REL_AMD64_REL32
46 Type: IMAGE_REL_AMD64_REL32_1
48 Type: IMAGE_REL_AMD64_REL32_2
50 Type: IMAGE_REL_AMD64_REL32_3
52 Type: IMAGE_REL_AMD64_REL32_4
54 Type: IMAGE_REL_AMD64_REL32_5
56 Type: IMAGE_REL_AMD64_SECTION
58 Type: IMAGE_REL_AMD64_SECREL
60 Type: IMAGE_REL_AMD64_SECREL7
62 Type: IMAGE_REL_AMD64_TOKEN
64 Type: IMAGE_REL_AMD64_SREL32
66 Type: IMAGE_REL_AMD64_PAIR
68 Type: IMAGE_REL_AMD64_SSPAN32
73 SimpleType: IMAGE_SYM_TYPE_NULL
74 ComplexType: IMAGE_SYM_DTYPE_NULL
75 StorageClass: IMAGE_SYM_CLASS_STATIC
78 NumberOfRelocations: 17
79 NumberOfLinenumbers: 0