Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
elf.h File Reference
#include <asm/ptrace.h>
#include <asm/user.h>

Go to the source code of this file.

Macros

#define EF_FRV_GPR_MASK   0x00000003 /* mask for # of gprs */
 
#define EF_FRV_GPR32   0x00000001 /* Only uses GR on 32-register */
 
#define EF_FRV_GPR64   0x00000002 /* Only uses GR on 64-register */
 
#define EF_FRV_FPR_MASK   0x0000000c /* mask for # of fprs */
 
#define EF_FRV_FPR32   0x00000004 /* Only uses FR on 32-register */
 
#define EF_FRV_FPR64   0x00000008 /* Only uses FR on 64-register */
 
#define EF_FRV_FPR_NONE   0x0000000C /* Uses software floating-point */
 
#define EF_FRV_DWORD_MASK   0x00000030 /* mask for dword support */
 
#define EF_FRV_DWORD_YES   0x00000010 /* Assumes stack aligned to 8-byte boundaries. */
 
#define EF_FRV_DWORD_NO   0x00000020 /* Assumes stack aligned to 4-byte boundaries. */
 
#define EF_FRV_DOUBLE   0x00000040 /* Uses double instructions. */
 
#define EF_FRV_MEDIA   0x00000080 /* Uses media instructions. */
 
#define EF_FRV_PIC   0x00000100 /* Uses position independent code. */
 
#define EF_FRV_NON_PIC_RELOCS   0x00000200 /* Does not use position Independent code. */
 
#define EF_FRV_MULADD   0x00000400 /* -mmuladd */
 
#define EF_FRV_BIGPIC   0x00000800 /* -fPIC */
 
#define EF_FRV_LIBPIC   0x00001000 /* -mlibrary-pic */
 
#define EF_FRV_G0   0x00002000 /* -G 0, no small data ptr */
 
#define EF_FRV_NOPACK   0x00004000 /* -mnopack */
 
#define EF_FRV_FDPIC   0x00008000 /* -mfdpic */
 
#define EF_FRV_CPU_MASK   0xff000000 /* specific cpu bits */
 
#define EF_FRV_CPU_GENERIC   0x00000000 /* Set CPU type is FR-V */
 
#define EF_FRV_CPU_FR500   0x01000000 /* Set CPU type is FR500 */
 
#define EF_FRV_CPU_FR300   0x02000000 /* Set CPU type is FR300 */
 
#define EF_FRV_CPU_SIMPLE   0x03000000 /* SIMPLE */
 
#define EF_FRV_CPU_TOMCAT   0x04000000 /* Tomcat, FR500 prototype */
 
#define EF_FRV_CPU_FR400   0x05000000 /* Set CPU type is FR400 */
 
#define EF_FRV_CPU_FR550   0x06000000 /* Set CPU type is FR550 */
 
#define EF_FRV_CPU_FR405   0x07000000 /* Set CPU type is FR405 */
 
#define EF_FRV_CPU_FR450   0x08000000 /* Set CPU type is FR450 */
 
#define ELF_NGREG   (sizeof(struct pt_regs) / sizeof(elf_greg_t))
 
#define elf_check_fdpic(x)   ((x)->e_flags & EF_FRV_FDPIC && !((x)->e_flags & EF_FRV_NON_PIC_RELOCS))
 
#define elf_check_const_displacement(x)   ((x)->e_flags & EF_FRV_PIC)
 
#define ELF_CLASS   ELFCLASS32
 
#define ELF_DATA   ELFDATA2MSB
 
#define ELF_ARCH   EM_FRV
 
#define ELF_PLAT_INIT(_r)
 
#define ELF_FDPIC_PLAT_INIT(_regs, _exec_map_addr, _interp_map_addr, _dynamic_addr)
 
#define CORE_DUMP_USE_REGSET
 
#define ELF_FDPIC_CORE_EFLAGS   EF_FRV_FDPIC
 
#define ELF_EXEC_PAGESIZE   16384
 
#define ELF_ET_DYN_BASE   0x08000000UL
 
#define ELF_HWCAP   (0)
 
#define ELF_PLATFORM   (NULL)
 
#define SET_PERSONALITY(ex)   set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
 

Typedefs

typedef unsigned long elf_greg_t
 
typedef elf_greg_t elf_gregset_t [ELF_NGREG]
 
typedef struct user_fpmedia_regs elf_fpregset_t
 

Functions

int elf_check_arch (const struct elf32_hdr *hdr)
 

Macro Definition Documentation

#define CORE_DUMP_USE_REGSET

Definition at line 118 of file elf.h.

#define EF_FRV_BIGPIC   0x00000800 /* -fPIC */

Definition at line 38 of file elf.h.

#define EF_FRV_CPU_FR300   0x02000000 /* Set CPU type is FR300 */

Definition at line 46 of file elf.h.

#define EF_FRV_CPU_FR400   0x05000000 /* Set CPU type is FR400 */

Definition at line 49 of file elf.h.

#define EF_FRV_CPU_FR405   0x07000000 /* Set CPU type is FR405 */

Definition at line 51 of file elf.h.

#define EF_FRV_CPU_FR450   0x08000000 /* Set CPU type is FR450 */

Definition at line 52 of file elf.h.

#define EF_FRV_CPU_FR500   0x01000000 /* Set CPU type is FR500 */

Definition at line 45 of file elf.h.

#define EF_FRV_CPU_FR550   0x06000000 /* Set CPU type is FR550 */

Definition at line 50 of file elf.h.

#define EF_FRV_CPU_GENERIC   0x00000000 /* Set CPU type is FR-V */

Definition at line 44 of file elf.h.

#define EF_FRV_CPU_MASK   0xff000000 /* specific cpu bits */

Definition at line 43 of file elf.h.

#define EF_FRV_CPU_SIMPLE   0x03000000 /* SIMPLE */

Definition at line 47 of file elf.h.

#define EF_FRV_CPU_TOMCAT   0x04000000 /* Tomcat, FR500 prototype */

Definition at line 48 of file elf.h.

#define EF_FRV_DOUBLE   0x00000040 /* Uses double instructions. */

Definition at line 33 of file elf.h.

#define EF_FRV_DWORD_MASK   0x00000030 /* mask for dword support */

Definition at line 30 of file elf.h.

#define EF_FRV_DWORD_NO   0x00000020 /* Assumes stack aligned to 4-byte boundaries. */

Definition at line 32 of file elf.h.

#define EF_FRV_DWORD_YES   0x00000010 /* Assumes stack aligned to 8-byte boundaries. */

Definition at line 31 of file elf.h.

#define EF_FRV_FDPIC   0x00008000 /* -mfdpic */

Definition at line 42 of file elf.h.

#define EF_FRV_FPR32   0x00000004 /* Only uses FR on 32-register */

Definition at line 27 of file elf.h.

#define EF_FRV_FPR64   0x00000008 /* Only uses FR on 64-register */

Definition at line 28 of file elf.h.

#define EF_FRV_FPR_MASK   0x0000000c /* mask for # of fprs */

Definition at line 26 of file elf.h.

#define EF_FRV_FPR_NONE   0x0000000C /* Uses software floating-point */

Definition at line 29 of file elf.h.

#define EF_FRV_G0   0x00002000 /* -G 0, no small data ptr */

Definition at line 40 of file elf.h.

#define EF_FRV_GPR32   0x00000001 /* Only uses GR on 32-register */

Definition at line 24 of file elf.h.

#define EF_FRV_GPR64   0x00000002 /* Only uses GR on 64-register */

Definition at line 25 of file elf.h.

#define EF_FRV_GPR_MASK   0x00000003 /* mask for # of gprs */

Definition at line 23 of file elf.h.

#define EF_FRV_LIBPIC   0x00001000 /* -mlibrary-pic */

Definition at line 39 of file elf.h.

#define EF_FRV_MEDIA   0x00000080 /* Uses media instructions. */

Definition at line 34 of file elf.h.

#define EF_FRV_MULADD   0x00000400 /* -mmuladd */

Definition at line 37 of file elf.h.

#define EF_FRV_NON_PIC_RELOCS   0x00000200 /* Does not use position Independent code. */

Definition at line 36 of file elf.h.

#define EF_FRV_NOPACK   0x00004000 /* -mnopack */

Definition at line 41 of file elf.h.

#define EF_FRV_PIC   0x00000100 /* Uses position independent code. */

Definition at line 35 of file elf.h.

#define ELF_ARCH   EM_FRV

Definition at line 82 of file elf.h.

#define elf_check_const_displacement (   x)    ((x)->e_flags & EF_FRV_PIC)

Definition at line 75 of file elf.h.

#define elf_check_fdpic (   x)    ((x)->e_flags & EF_FRV_FDPIC && !((x)->e_flags & EF_FRV_NON_PIC_RELOCS))

Definition at line 74 of file elf.h.

#define ELF_CLASS   ELFCLASS32

Definition at line 80 of file elf.h.

#define ELF_DATA   ELFDATA2MSB

Definition at line 81 of file elf.h.

#define ELF_ET_DYN_BASE   0x08000000UL

Definition at line 127 of file elf.h.

#define ELF_EXEC_PAGESIZE   16384

Definition at line 120 of file elf.h.

#define ELF_FDPIC_CORE_EFLAGS   EF_FRV_FDPIC

Definition at line 119 of file elf.h.

#define ELF_FDPIC_PLAT_INIT (   _regs,
  _exec_map_addr,
  _interp_map_addr,
  _dynamic_addr 
)
Value:
do { \
__kernel_frame0_ptr->gr16 = _exec_map_addr; \
__kernel_frame0_ptr->gr17 = _interp_map_addr; \
__kernel_frame0_ptr->gr18 = _dynamic_addr; \
__kernel_frame0_ptr->gr19 = 0; \
__kernel_frame0_ptr->gr20 = 0; \
__kernel_frame0_ptr->gr21 = 0; \
__kernel_frame0_ptr->gr22 = 0; \
__kernel_frame0_ptr->gr23 = 0; \
__kernel_frame0_ptr->gr24 = 0; \
__kernel_frame0_ptr->gr25 = 0; \
__kernel_frame0_ptr->gr26 = 0; \
__kernel_frame0_ptr->gr27 = 0; \
__kernel_frame0_ptr->gr29 = 0; \
} while(0)

Definition at line 101 of file elf.h.

#define ELF_HWCAP   (0)

Definition at line 132 of file elf.h.

#define ELF_NGREG   (sizeof(struct pt_regs) / sizeof(elf_greg_t))

Definition at line 64 of file elf.h.

#define ELF_PLAT_INIT (   _r)
Value:
do { \
__kernel_frame0_ptr->gr16 = 0; \
__kernel_frame0_ptr->gr17 = 0; \
__kernel_frame0_ptr->gr18 = 0; \
__kernel_frame0_ptr->gr19 = 0; \
__kernel_frame0_ptr->gr20 = 0; \
__kernel_frame0_ptr->gr21 = 0; \
__kernel_frame0_ptr->gr22 = 0; \
__kernel_frame0_ptr->gr23 = 0; \
__kernel_frame0_ptr->gr24 = 0; \
__kernel_frame0_ptr->gr25 = 0; \
__kernel_frame0_ptr->gr26 = 0; \
__kernel_frame0_ptr->gr27 = 0; \
__kernel_frame0_ptr->gr29 = 0; \
} while(0)

Definition at line 84 of file elf.h.

#define ELF_PLATFORM   (NULL)

Definition at line 138 of file elf.h.

#define SET_PERSONALITY (   ex)    set_personality(PER_LINUX | (current->personality & (~PER_MASK)))

Definition at line 140 of file elf.h.

Typedef Documentation

Definition at line 67 of file elf.h.

typedef unsigned long elf_greg_t

Definition at line 62 of file elf.h.

Definition at line 65 of file elf.h.

Function Documentation

int elf_check_arch ( const struct elf32_hdr hdr)

Definition at line 8 of file elf.c.