File: reloc-types-elf-lanai.test

package info (click to toggle)
llvm-toolchain-9 1%3A9.0.1-16.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 882,388 kB
  • sloc: cpp: 4,167,636; ansic: 714,256; asm: 457,610; python: 155,927; objc: 65,094; sh: 42,856; lisp: 26,908; perl: 7,786; pascal: 7,722; makefile: 6,881; ml: 5,581; awk: 3,648; cs: 2,027; xml: 888; javascript: 381; ruby: 156
file content (47 lines) | stat: -rw-r--r-- 1,338 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
## Test that llvm-readobj/llvm-readelf shows proper relocation type
## names and values for lanai target.

# RUN: yaml2obj %s -o %t-lanai.o
# RUN: llvm-readobj -r --expand-relocs %t-lanai.o | FileCheck %s

# CHECK: Type: R_LANAI_NONE (0)
# CHECK: Type: R_LANAI_21 (1)
# CHECK: Type: R_LANAI_21_F (2)
# CHECK: Type: R_LANAI_25 (3)
# CHECK: Type: R_LANAI_32 (4)
# CHECK: Type: R_LANAI_HI16 (5)
# CHECK: Type: R_LANAI_LO16 (6)

--- !ELF
FileHeader:
  Class:   ELFCLASS32
  Data:    ELFDATA2MSB
  Type:    ET_REL
  Machine: EM_LANAI
Sections:
  - Name:         .text
    Type:         SHT_PROGBITS
    Flags:        [ SHF_ALLOC, SHF_EXECINSTR ]
    AddressAlign: 0x0000000000000004
    Content:      00
  - Name:         .rela.text
    Type:         SHT_RELA
    Link:         .symtab
    AddressAlign: 0x0000000000000004
    EntSize:      0x000000000000000C
    Info:         .text
    Relocations:
      - Offset: 0x0000000000000000
        Type:   R_LANAI_NONE
      - Offset: 0x0000000000000004
        Type:   R_LANAI_21
      - Offset: 0x0000000000000008
        Type:   R_LANAI_21_F
      - Offset: 0x000000000000000C
        Type:   R_LANAI_25
      - Offset: 0x0000000000000010
        Type:   R_LANAI_32
      - Offset: 0x0000000000000014
        Type:   R_LANAI_HI16
      - Offset: 0x0000000000000018
        Type:   R_LANAI_LO16