aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-h8300/elf.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-h8300/elf.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/asm-h8300/elf.h')
-rw-r--r--include/asm-h8300/elf.h107
1 files changed, 107 insertions, 0 deletions
diff --git a/include/asm-h8300/elf.h b/include/asm-h8300/elf.h
new file mode 100644
index 000000000000..f4af1553a55f
--- /dev/null
+++ b/include/asm-h8300/elf.h
@@ -0,0 +1,107 @@
1#ifndef __ASMH8300_ELF_H
2#define __ASMH8300_ELF_H
3
4/*
5 * ELF register definitions..
6 */
7
8#include <linux/config.h>
9#include <asm/ptrace.h>
10#include <asm/user.h>
11
12typedef unsigned long elf_greg_t;
13
14#define ELF_NGREG (sizeof(struct user_regs_struct) / sizeof(elf_greg_t))
15typedef elf_greg_t elf_gregset_t[ELF_NGREG];
16typedef unsigned long elf_fpregset_t;
17
18/*
19 * This is used to ensure we don't load something for the wrong architecture.
20 */
21#define elf_check_arch(x) ((x)->e_machine == EM_H8_300)
22
23/*
24 * These are used to set parameters in the core dumps.
25 */
26#define ELF_CLASS ELFCLASS32
27#define ELF_DATA ELFDATA2MSB
28#define ELF_ARCH EM_H8_300
29#if defined(__H8300H__)
30#define ELF_FLAGS 0x810000
31#endif
32#if defined(__H8300S__)
33#define ELF_FLAGS 0x820000
34#endif
35
36#define ELF_PLAT_INIT(_r) _r->er1 = 0
37
38#define USE_ELF_CORE_DUMP
39#define ELF_EXEC_PAGESIZE 4096
40
41/* This is the location that an ET_DYN program is loaded if exec'ed. Typical
42 use of this is to invoke "./ld.so someprog" to test out a new version of
43 the loader. We need to make sure that it is out of the way of the program
44 that it will "exec", and that there is sufficient room for the brk. */
45
46#define ELF_ET_DYN_BASE 0xD0000000UL
47
48/* This yields a mask that user programs can use to figure out what
49 instruction set this cpu supports. */
50
51#define ELF_HWCAP (0)
52
53/* This yields a string that ld.so will use to load implementation
54 specific libraries for optimization. This is more specific in
55 intent than poking at uname or /proc/cpuinfo. */
56
57#define ELF_PLATFORM (NULL)
58
59#ifdef __KERNEL__
60#define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX)
61#endif
62
63#define R_H8_NONE 0
64#define R_H8_DIR32 1
65#define R_H8_DIR32_28 2
66#define R_H8_DIR32_24 3
67#define R_H8_DIR32_16 4
68#define R_H8_DIR32U 6
69#define R_H8_DIR32U_28 7
70#define R_H8_DIR32U_24 8
71#define R_H8_DIR32U_20 9
72#define R_H8_DIR32U_16 10
73#define R_H8_DIR24 11
74#define R_H8_DIR24_20 12
75#define R_H8_DIR24_16 13
76#define R_H8_DIR24U 14
77#define R_H8_DIR24U_20 15
78#define R_H8_DIR24U_16 16
79#define R_H8_DIR16 17
80#define R_H8_DIR16U 18
81#define R_H8_DIR16S_32 19
82#define R_H8_DIR16S_28 20
83#define R_H8_DIR16S_24 21
84#define R_H8_DIR16S_20 22
85#define R_H8_DIR16S 23
86#define R_H8_DIR8 24
87#define R_H8_DIR8U 25
88#define R_H8_DIR8Z_32 26
89#define R_H8_DIR8Z_28 27
90#define R_H8_DIR8Z_24 28
91#define R_H8_DIR8Z_20 29
92#define R_H8_DIR8Z_16 30
93#define R_H8_PCREL16 31
94#define R_H8_PCREL8 32
95#define R_H8_BPOS 33
96#define R_H8_PCREL32 34
97#define R_H8_GOT32O 35
98#define R_H8_GOT16O 36
99#define R_H8_DIR16A8 59
100#define R_H8_DIR16R8 60
101#define R_H8_DIR24A8 61
102#define R_H8_DIR24R8 62
103#define R_H8_DIR32A16 63
104#define R_H8_ABS32 65
105#define R_H8_ABS32A16 127
106
107#endif