5 * ELF register definitions..
7 #include <asm/ptrace.h>
9 #define ELF_NGREG 48 /* includes nip, msr, lr, etc. */
10 #define ELF_NFPREG 33 /* includes fpscr */
11 #define ELF_NVRREG 33 /* includes vscr */
14 * This is used to ensure we don't load something for the wrong architecture.
16 #define elf_check_arch(x) ((x)->e_machine == EM_PPC)
19 * These are used to set parameters in the core dumps.
21 #define ELF_ARCH EM_PPC
22 #define ELF_CLASS ELFCLASS32
23 #define ELF_DATA ELFDATA2MSB
25 #define USE_ELF_CORE_DUMP
26 #define ELF_EXEC_PAGESIZE 4096
28 /* This is the location that an ET_DYN program is loaded if exec'ed. Typical
29 use of this is to invoke "./ld.so someprog" to test out a new version of
30 the loader. We need to make sure that it is out of the way of the program
31 that it will "exec", and that there is sufficient room for the brk. */
33 #define ELF_ET_DYN_BASE (0x08000000)
35 typedef unsigned long elf_greg_t
;
36 typedef elf_greg_t elf_gregset_t
[ELF_NGREG
];
38 typedef double elf_fpreg_t
;
39 typedef elf_fpreg_t elf_fpregset_t
[ELF_NFPREG
];
42 /* Altivec registers */
43 typedef vector128 elf_vrreg_t
;
44 typedef elf_vrreg_t elf_vrregset_t
[ELF_NVRREG
];
45 #endif /* __KERNEL__ */
47 #define ELF_CORE_COPY_REGS(gregs, regs) \
49 sizeof(struct pt_regs) < sizeof(elf_gregset_t)? \
50 sizeof(struct pt_regs): sizeof(elf_gregset_t));
53 /* This yields a mask that user programs can use to figure out what
54 instruction set this cpu supports. This could be done in userspace,
55 but it's not easy, and we've already done it here. */
59 /* This yields a string that ld.so will use to load implementation
60 specific libraries for optimization. This is more specific in
61 intent than poking at uname or /proc/cpuinfo.
63 For the moment, we have only optimizations for the Intel generations,
64 but that could change... */
66 #define ELF_PLATFORM (NULL)
69 #define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX)