 |
RTEMS 5.2
|
34#ifndef _RISCV_ELF_MACHDEP_H_
35#define _RISCV_ELF_MACHDEP_H_
38#define ELF32_MACHDEP_ID EM_RISCV
39#define ELF64_MACHDEP_ID EM_RISCV
41#define ELF32_MACHDEP_ENDIANNESS ELFDATA2LSB
42#define ELF64_MACHDEP_ENDIANNESS ELFDATA2LSB
44#define ELF32_MACHDEP_ID_CASES \
48#define ELF64_MACHDEP_ID_CASES \
52#define KERN_ELFSIZE 32
54#define ARCH_ELFSIZE 64
56#define ARCH_ELFSIZE 32
66#define R_RISCV_RELATIVE 3
68#define R_RISCV_JMP_SLOT 5
69#define R_RISCV_TLS_DTPMOD32 6
70#define R_RISCV_TLS_DTPREL32 7
71#define R_RISCV_TLS_DTPMOD64 8
72#define R_RISCV_TLS_DTPREL64 9
73#define R_RISCV_TLS_TPREL32 10
74#define R_RISCV_TLS_TPREL64 11
77#define R_RISCV_BRANCH 16
79#define R_RISCV_CALL 18
80#define R_RISCV_CALL_PLT 19
81#define R_RISCV_GOT_HI20 20
82#define R_RISCV_TLS_GOT_HI20 21
83#define R_RISCV_TLS_GD_HI20 22
84#define R_RISCV_PCREL_HI20 23
85#define R_RISCV_PCREL_LO12_I 24
86#define R_RISCV_PCREL_LO12_S 25
87#define R_RISCV_HI20 26
88#define R_RISCV_LO12_I 27
89#define R_RISCV_LO12_S 28
90#define R_RISCV_TPREL_HI20 29
91#define R_RISCV_TPREL_LO12_I 30
92#define R_RISCV_TPREL_LO12_S 31
93#define R_RISCV_TPREL_ADD 32
94#define R_RISCV_ADD8 33
95#define R_RISCV_ADD16 34
96#define R_RISCV_ADD32 35
97#define R_RISCV_ADD64 36
98#define R_RISCV_SUB8 37
99#define R_RISCV_SUB16 38
100#define R_RISCV_SUB32 39
101#define R_RISCV_SUB64 40
102#define R_RISCV_GNU_VTINHERIT 41
103#define R_RISCV_GNU_VTENTRY 42
104#define R_RISCV_ALIGN 43
105#define R_RISCV_RVC_BRANCH 44
106#define R_RISCV_RVC_JUMP 45
107#define R_RISCV_RVC_LUI 46
109#define R_RISCV_RELAX 51
110#define R_RISCV_SUB6 52
111#define R_RISCV_SET6 53
112#define R_RISCV_SET8 54
113#define R_RISCV_SET16 55
114#define R_RISCV_SET32 56
116#define R_RISCV_32_PCREL 57
119#define R_RISCV_ADDR32 R_RISCV_32
120#define R_RISCV_ADDR64 R_RISCV_64
122#define R_TYPE(name) R_RISCV_ ## name
124#define R_TYPESZ(name) R_RISCV_ ## name ## 32
126#define R_TYPESZ(name) R_RISCV_ ## name ## 64
131#define ELF_MD_PROBE_FUNC ELFNAME2(cpu_netbsd,probe)
136int cpu_netbsd_elf32_probe(
struct lwp *,
struct exec_package *,
void *,
char *,
139int cpu_netbsd_elf64_probe(
struct lwp *,
struct exec_package *,
void *,
char *,