GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / h8300 / include / asm / elf.h
blobc24fa250d6533cdb3a5429c102323ca19d356e0d
1 #ifndef __ASMH8300_ELF_H
2 #define __ASMH8300_ELF_H
4 /*
5 * ELF register definitions..
6 */
8 #include <asm/ptrace.h>
9 #include <asm/user.h>
11 typedef unsigned long elf_greg_t;
13 #define ELF_NGREG (sizeof(struct user_regs_struct) / sizeof(elf_greg_t))
14 typedef elf_greg_t elf_gregset_t[ELF_NGREG];
15 typedef unsigned long elf_fpregset_t;
18 * This is used to ensure we don't load something for the wrong architecture.
20 #define elf_check_arch(x) ((x)->e_machine == EM_H8_300)
23 * These are used to set parameters in the core dumps.
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
30 #endif
31 #if defined(__H8300S__)
32 #define ELF_CORE_EFLAGS 0x820000
33 #endif
35 #define ELF_PLAT_INIT(_r) _r->er1 = 0
37 #define ELF_EXEC_PAGESIZE 4096
39 /* This is the location that an ET_DYN program is loaded if exec'ed. Typical
40 use of this is to invoke "./ld.so someprog" to test out a new version of
41 the loader. We need to make sure that it is out of the way of the program
42 that it will "exec", and that there is sufficient room for the brk. */
44 #define ELF_ET_DYN_BASE 0xD0000000UL
46 /* This yields a mask that user programs can use to figure out what
47 instruction set this cpu supports. */
49 #define ELF_HWCAP (0)
51 /* This yields a string that ld.so will use to load implementation
52 specific libraries for optimization. This is more specific in
53 intent than poking at uname or /proc/cpuinfo. */
55 #define ELF_PLATFORM (NULL)
57 #define SET_PERSONALITY(ex) set_personality(PER_LINUX)
59 #define R_H8_NONE 0
60 #define R_H8_DIR32 1
61 #define R_H8_DIR32_28 2
62 #define R_H8_DIR32_24 3
63 #define R_H8_DIR32_16 4
64 #define R_H8_DIR32U 6
65 #define R_H8_DIR32U_28 7
66 #define R_H8_DIR32U_24 8
67 #define R_H8_DIR32U_20 9
68 #define R_H8_DIR32U_16 10
69 #define R_H8_DIR24 11
70 #define R_H8_DIR24_20 12
71 #define R_H8_DIR24_16 13
72 #define R_H8_DIR24U 14
73 #define R_H8_DIR24U_20 15
74 #define R_H8_DIR24U_16 16
75 #define R_H8_DIR16 17
76 #define R_H8_DIR16U 18
77 #define R_H8_DIR16S_32 19
78 #define R_H8_DIR16S_28 20
79 #define R_H8_DIR16S_24 21
80 #define R_H8_DIR16S_20 22
81 #define R_H8_DIR16S 23
82 #define R_H8_DIR8 24
83 #define R_H8_DIR8U 25
84 #define R_H8_DIR8Z_32 26
85 #define R_H8_DIR8Z_28 27
86 #define R_H8_DIR8Z_24 28
87 #define R_H8_DIR8Z_20 29
88 #define R_H8_DIR8Z_16 30
89 #define R_H8_PCREL16 31
90 #define R_H8_PCREL8 32
91 #define R_H8_BPOS 33
92 #define R_H8_PCREL32 34
93 #define R_H8_GOT32O 35
94 #define R_H8_GOT16O 36
95 #define R_H8_DIR16A8 59
96 #define R_H8_DIR16R8 60
97 #define R_H8_DIR24A8 61
98 #define R_H8_DIR24R8 62
99 #define R_H8_DIR32A16 63
100 #define R_H8_ABS32 65
101 #define R_H8_ABS32A16 127
103 #endif