Go to the documentation of this file. 1 #ifndef __ASMH8300_ELF_H
2 #define __ASMH8300_ELF_H
8 #include <asm/ptrace.h>
13 #define ELF_NGREG (sizeof(struct user_regs_struct) / sizeof(elf_greg_t))
20 #define elf_check_arch(x) ((x)->e_machine == EM_H8_300)
25 #define ELF_CLASS ELFCLASS32
26 #define ELF_DATA ELFDATA2MSB
27 #define ELF_ARCH EM_H8_300
28 #if defined(__H8300H__)
29 #define ELF_CORE_EFLAGS 0x810000
31 #if defined(__H8300S__)
32 #define ELF_CORE_EFLAGS 0x820000
35 #define ELF_PLAT_INIT(_r) _r->er1 = 0
37 #define ELF_EXEC_PAGESIZE 4096
44 #define ELF_ET_DYN_BASE 0xD0000000UL
55 #define ELF_PLATFORM (NULL)
57 #define SET_PERSONALITY(ex) \
58 set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
62 #define R_H8_DIR32_28 2
63 #define R_H8_DIR32_24 3
64 #define R_H8_DIR32_16 4
66 #define R_H8_DIR32U_28 7
67 #define R_H8_DIR32U_24 8
68 #define R_H8_DIR32U_20 9
69 #define R_H8_DIR32U_16 10
71 #define R_H8_DIR24_20 12
72 #define R_H8_DIR24_16 13
73 #define R_H8_DIR24U 14
74 #define R_H8_DIR24U_20 15
75 #define R_H8_DIR24U_16 16
77 #define R_H8_DIR16U 18
78 #define R_H8_DIR16S_32 19
79 #define R_H8_DIR16S_28 20
80 #define R_H8_DIR16S_24 21
81 #define R_H8_DIR16S_20 22
82 #define R_H8_DIR16S 23
85 #define R_H8_DIR8Z_32 26
86 #define R_H8_DIR8Z_28 27
87 #define R_H8_DIR8Z_24 28
88 #define R_H8_DIR8Z_20 29
89 #define R_H8_DIR8Z_16 30
90 #define R_H8_PCREL16 31
91 #define R_H8_PCREL8 32
93 #define R_H8_PCREL32 34
94 #define R_H8_GOT32O 35
95 #define R_H8_GOT16O 36
96 #define R_H8_DIR16A8 59
97 #define R_H8_DIR16R8 60
98 #define R_H8_DIR24A8 61
99 #define R_H8_DIR24R8 62
100 #define R_H8_DIR32A16 63
101 #define R_H8_ABS32 65
102 #define R_H8_ABS32A16 127