#ifndef __ASMCRIS_ELF_H1#define __ASMCRIS_ELF_H23/*4* ELF register definitions..5*/67#include <asm/user.h>89#define R_CRIS_NONE 010#define R_CRIS_8 111#define R_CRIS_16 212#define R_CRIS_32 313#define R_CRIS_8_PCREL 414#define R_CRIS_16_PCREL 515#define R_CRIS_32_PCREL 616#define R_CRIS_GNU_VTINHERIT 717#define R_CRIS_GNU_VTENTRY 818#define R_CRIS_COPY 919#define R_CRIS_GLOB_DAT 1020#define R_CRIS_JUMP_SLOT 1121#define R_CRIS_RELATIVE 1222#define R_CRIS_16_GOT 1323#define R_CRIS_32_GOT 1424#define R_CRIS_16_GOTPLT 1525#define R_CRIS_32_GOTPLT 1626#define R_CRIS_32_GOTREL 1727#define R_CRIS_32_PLT_GOTREL 1828#define R_CRIS_32_PLT_PCREL 192930typedef unsigned long elf_greg_t;3132/* Note that NGREG is defined to ELF_NGREG in include/linux/elfcore.h, and is33thus exposed to user-space. */34#define ELF_NGREG (sizeof (struct user_regs_struct) / sizeof(elf_greg_t))35typedef elf_greg_t elf_gregset_t[ELF_NGREG];3637/* A placeholder; CRIS does not have any fp regs. */38typedef unsigned long elf_fpregset_t;3940/*41* These are used to set parameters in the core dumps.42*/43#define ELF_CLASS ELFCLASS3244#define ELF_DATA ELFDATA2LSB45#define ELF_ARCH EM_CRIS4647#include <arch/elf.h>4849/* The master for these definitions is {binutils}/include/elf/cris.h: */50/* User symbols in this file have a leading underscore. */51#define EF_CRIS_UNDERSCORE 0x000000015253/* This is a mask for different incompatible machine variants. */54#define EF_CRIS_VARIANT_MASK 0x0000000e5556/* Variant 0; may contain v0..10 object. */57#define EF_CRIS_VARIANT_ANY_V0_V10 0x000000005859/* Variant 1; contains v32 object. */60#define EF_CRIS_VARIANT_V32 0x000000026162/* Variant 2; contains object compatible with v32 and v10. */63#define EF_CRIS_VARIANT_COMMON_V10_V32 0x0000000464/* End of excerpt from {binutils}/include/elf/cris.h. */6566#define ELF_EXEC_PAGESIZE 81926768/* This is the location that an ET_DYN program is loaded if exec'ed. Typical69use of this is to invoke "./ld.so someprog" to test out a new version of70the loader. We need to make sure that it is out of the way of the program71that it will "exec", and that there is sufficient room for the brk. */7273#define ELF_ET_DYN_BASE (2 * TASK_SIZE / 3)7475/* This yields a mask that user programs can use to figure out what76instruction set this CPU supports. This could be done in user space,77but it's not easy, and we've already done it here. */7879#define ELF_HWCAP (0)8081/* This yields a string that ld.so will use to load implementation82specific libraries for optimization. This is more specific in83intent than poking at uname or /proc/cpuinfo.84*/8586#define ELF_PLATFORM (NULL)8788#define SET_PERSONALITY(ex) set_personality(PER_LINUX)8990#endif919293