~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/asm-sh/elf.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef __ASM_SH_ELF_H
  2 #define __ASM_SH_ELF_H
  3 
  4 /*
  5  * ELF register definitions..
  6  */
  7 
  8 #include <asm/ptrace.h>
  9 #include <asm/user.h>
 10 #include <asm/byteorder.h>
 11 
 12 typedef unsigned long elf_greg_t;
 13 
 14 #define ELF_NGREG (sizeof (struct pt_regs) / sizeof(elf_greg_t))
 15 typedef elf_greg_t elf_gregset_t[ELF_NGREG];
 16 
 17 typedef struct user_fpu_struct elf_fpregset_t;
 18 
 19 /*
 20  * This is used to ensure we don't load something for the wrong architecture.
 21  */
 22 #define elf_check_arch(x) ( (x)->e_machine == EM_SH )
 23 
 24 /*
 25  * These are used to set parameters in the core dumps.
 26  */
 27 #define ELF_CLASS       ELFCLASS32
 28 #ifdef __LITTLE_ENDIAN__
 29 #define ELF_DATA        ELFDATA2LSB
 30 #else
 31 #define ELF_DATA        ELFDATA2MSB
 32 #endif
 33 #define ELF_ARCH        EM_SH
 34 
 35 #define USE_ELF_CORE_DUMP
 36 #define ELF_EXEC_PAGESIZE       4096
 37 
 38 /* This is the location that an ET_DYN program is loaded if exec'ed.  Typical
 39    use of this is to invoke "./ld.so someprog" to test out a new version of
 40    the loader.  We need to make sure that it is out of the way of the program
 41    that it will "exec", and that there is sufficient room for the brk.  */
 42 
 43 #define ELF_ET_DYN_BASE         (2 * TASK_SIZE / 3)
 44 
 45 
 46 #define ELF_CORE_COPY_REGS(_dest,_regs)                         \
 47         memcpy((char *) &_dest, (char *) _regs,                 \
 48                sizeof(struct pt_regs));
 49 
 50 /* This yields a mask that user programs can use to figure out what
 51    instruction set this CPU supports.  This could be done in user space,
 52    but it's not easy, and we've already done it here.  */
 53 
 54 #define ELF_HWCAP       (0)
 55 
 56 /* This yields a string that ld.so will use to load implementation
 57    specific libraries for optimization.  This is more specific in
 58    intent than poking at uname or /proc/cpuinfo.
 59 
 60    For the moment, we have only optimizations for the Intel generations,
 61    but that could change... */
 62 
 63 #define ELF_PLATFORM  (NULL)
 64 
 65 #define ELF_PLAT_INIT(_r) \
 66   do { _r->regs[0]=0; _r->regs[1]=0; _r->regs[2]=0; _r->regs[3]=0; \
 67        _r->regs[4]=0; _r->regs[5]=0; _r->regs[6]=0; _r->regs[7]=0; \
 68        _r->regs[8]=0; _r->regs[9]=0; _r->regs[10]=0; _r->regs[11]=0; \
 69        _r->regs[12]=0; _r->regs[13]=0; _r->regs[14]=0; \
 70        _r->sr = SR_FD; } while (0)
 71 
 72 #ifdef __KERNEL__
 73 #define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX_32BIT)
 74 #endif
 75 
 76 #endif /* __ASM_SH_ELF_H */
 77 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.