Go to the documentation of this file. 1 #ifndef _ASM_M32R__ELF_H
2 #define _ASM_M32R__ELF_H
11 #include <asm/ptrace.h>
20 #define R_M32R_10_PCREL 4
21 #define R_M32R_18_PCREL 5
22 #define R_M32R_26_PCREL 6
23 #define R_M32R_HI16_ULO 7
24 #define R_M32R_HI16_SLO 8
26 #define R_M32R_SDA16 10
27 #define R_M32R_GNU_VTINHERIT 11
28 #define R_M32R_GNU_VTENTRY 12
30 #define R_M32R_16_RELA 33
31 #define R_M32R_32_RELA 34
32 #define R_M32R_24_RELA 35
33 #define R_M32R_10_PCREL_RELA 36
34 #define R_M32R_18_PCREL_RELA 37
35 #define R_M32R_26_PCREL_RELA 38
36 #define R_M32R_HI16_ULO_RELA 39
37 #define R_M32R_HI16_SLO_RELA 40
38 #define R_M32R_LO16_RELA 41
39 #define R_M32R_SDA16_RELA 42
40 #define R_M32R_RELA_GNU_VTINHERIT 43
41 #define R_M32R_RELA_GNU_VTENTRY 44
43 #define R_M32R_GOT24 48
44 #define R_M32R_26_PLTREL 49
45 #define R_M32R_COPY 50
46 #define R_M32R_GLOB_DAT 51
47 #define R_M32R_JMP_SLOT 52
48 #define R_M32R_RELATIVE 53
49 #define R_M32R_GOTOFF 54
50 #define R_M32R_GOTPC24 55
51 #define R_M32R_GOT16_HI_ULO 56
52 #define R_M32R_GOT16_HI_SLO 57
53 #define R_M32R_GOT16_LO 58
54 #define R_M32R_GOTPC_HI_ULO 59
55 #define R_M32R_GOTPC_HI_SLO 60
56 #define R_M32R_GOTPC_LO 61
57 #define R_M32R_GOTOFF_HI_ULO 62
58 #define R_M32R_GOTOFF_HI_SLO 63
59 #define R_M32R_GOTOFF_LO 64
61 #define R_M32R_NUM 256
66 #define ELF_NGREG (sizeof (struct pt_regs) / sizeof(elf_greg_t))
78 #define elf_check_arch(x) \
79 (((x)->e_machine == EM_M32R) || ((x)->e_machine == EM_CYGNUS_M32R))
84 #define ELF_CLASS ELFCLASS32
85 #if defined(__LITTLE_ENDIAN__)
86 #define ELF_DATA ELFDATA2LSB
87 #elif defined(__BIG_ENDIAN__)
88 #define ELF_DATA ELFDATA2MSB
90 #error no endian defined
92 #define ELF_ARCH EM_M32R
103 #define ELF_PLAT_INIT(_r, load_addr) (_r)->r0 = 0
105 #define ELF_EXEC_PAGESIZE PAGE_SIZE
114 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
119 #define ELF_CORE_COPY_REGS(pr_reg, regs) \
120 memcpy((char *)pr_reg, (char *)regs, sizeof (struct pt_regs));
124 #define ELF_HWCAP (0)
129 #define ELF_PLATFORM (NULL)
131 #define SET_PERSONALITY(ex) \
132 set_personality(PER_LINUX | (current->personality & (~PER_MASK)))