1 ## Test that llvm-readobj/llvm-readelf shows proper relocation type
2 ## names and values for ppc64 target.
4 ## TODO: Use yaml2obj. obj2yaml now hangs on dumping relocs.obj.elf-ppc64
5 # RUN: llvm-readobj -r --expand-relocs %p/Inputs/relocs.obj.elf-ppc64 | FileCheck %s
7 # CHECK: Type: R_PPC64_NONE (0)
8 # CHECK: Type: R_PPC64_ADDR32 (1)
9 # CHECK: Type: R_PPC64_ADDR16_LO (4)
10 # CHECK: Type: R_PPC64_ADDR16_HI (5)
11 # CHECK: Type: R_PPC64_ADDR14 (7)
12 # CHECK: Type: R_PPC64_REL24 (10)
13 # CHECK: Type: R_PPC64_REL32 (26)
14 # CHECK: Type: R_PPC64_ADDR64 (38)
15 # CHECK: Type: R_PPC64_ADDR16_HIGHER (39)
16 # CHECK: Type: R_PPC64_ADDR16_HIGHEST (41)
17 # CHECK: Type: R_PPC64_REL64 (44)
18 # CHECK: Type: R_PPC64_TOC16 (47)
19 # CHECK: Type: R_PPC64_TOC16_LO (48)
20 # CHECK: Type: R_PPC64_TOC16_HA (50)
21 # CHECK: Type: R_PPC64_TOC (51)
22 # CHECK: Type: R_PPC64_ADDR16_DS (56)
23 # CHECK: Type: R_PPC64_ADDR16_LO_DS (57)
24 # CHECK: Type: R_PPC64_TOC16_DS (63)
25 # CHECK: Type: R_PPC64_TOC16_LO_DS (64)
26 # CHECK: Type: R_PPC64_TLS (67)
27 # CHECK: Type: R_PPC64_TPREL16_LO (70)
28 # CHECK: Type: R_PPC64_TPREL16_HA (72)
29 # CHECK: Type: R_PPC64_DTPREL16_LO (75)
30 # CHECK: Type: R_PPC64_DTPREL16_HA (77)
31 # CHECK: Type: R_PPC64_GOT_TLSGD16_LO (80)
32 # CHECK: Type: R_PPC64_GOT_TLSGD16_HA (82)
33 # CHECK: Type: R_PPC64_GOT_TLSLD16_LO (84)
34 # CHECK: Type: R_PPC64_GOT_TLSLD16_HA (86)
35 # CHECK: Type: R_PPC64_GOT_TPREL16_LO_DS (88)
36 # CHECK: Type: R_PPC64_GOT_TPREL16_HA (90)
37 # CHECK: Type: R_PPC64_TLSGD (107)
38 # CHECK: Type: R_PPC64_TLSLD (108)