1 #ifndef __ASMH8300_ELF_H
2 #define __ASMH8300_ELF_H
5 * ELF register definitions..
8 #include <linux/config.h>
9 #include <asm/ptrace.h>
12 typedef unsigned long elf_greg_t;
14 #define ELF_NGREG (sizeof(struct user_regs_struct) / sizeof(elf_greg_t))
15 typedef elf_greg_t elf_gregset_t[ELF_NGREG];
17 typedef struct user_m68kfp_struct elf_fpregset_t;
20 * This is used to ensure we don't load something for the wrong architecture.
22 #define elf_check_arch(x) ((x)->e_machine == EM_68K)
25 * These are used to set parameters in the core dumps.
27 #define ELF_CLASS ELFCLASS32
28 #define ELF_DATA ELFDATA2MSB
29 #define ELF_ARCH EM_H8_300H
31 #define ELF_PLAT_INIT(_r) _r->er1 = 0
33 #define USE_ELF_CORE_DUMP
34 #define ELF_EXEC_PAGESIZE 4096
37 /* This is the location that an ET_DYN program is loaded if exec'ed. Typical
38 use of this is to invoke "./ld.so someprog" to test out a new version of
39 the loader. We need to make sure that it is out of the way of the program
40 that it will "exec", and that there is sufficient room for the brk. */
42 #define ELF_ET_DYN_BASE 0xD0000000UL
44 /* This yields a mask that user programs can use to figure out what
45 instruction set this cpu supports. */
49 /* This yields a string that ld.so will use to load implementation
50 specific libraries for optimization. This is more specific in
51 intent than poking at uname or /proc/cpuinfo. */
53 #define ELF_PLATFORM (NULL)
56 #define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX)