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

Go to the source code of this file.

Macros

#define ELF_NGREG   (sizeof(struct pt_regs) / sizeof(elf_greg_t))
 
#define EM_TILE64   187
 
#define EM_TILEPRO   188
 
#define EM_TILEGX   191
 
#define ELF_NFPREG   0
 
#define ELF_CLASS   ELFCLASS32
 
#define ELF_DATA   ELFDATA2LSB
 
#define ELF_ARCH   ELF_ARCH
 
#define elf_check_arch(x)
 
#define R_TILE_32   1
 
#define R_TILE_JOFFLONG_X1   15
 
#define R_TILE_IMM16_X0_LO   25
 
#define R_TILE_IMM16_X1_LO   26
 
#define R_TILE_IMM16_X0_HA   29
 
#define R_TILE_IMM16_X1_HA   30
 
#define ELF_EXEC_PAGESIZE   PAGE_SIZE
 
#define ELF_ET_DYN_BASE   (TASK_SIZE / 3 * 2)
 
#define ELF_CORE_COPY_REGS(_dest, _regs)
 
#define ELF_CORE_COPY_FPREGS(t, fpu)   0
 
#define ELF_HWCAP   (0)
 
#define ELF_PLATFORM   (NULL)
 
#define ELF_PLAT_INIT(_r, load_addr)   elf_plat_init(_r, load_addr)
 
#define ELF_CORE_COPY_TASK_REGS(tsk, elf_regs)   dump_task_regs(tsk, elf_regs)
 
#define SET_PERSONALITY(ex)   do { } while (0)
 
#define ARCH_HAS_SETUP_ADDITIONAL_PAGES
 

Typedefs

typedef unsigned long elf_greg_t
 
typedef elf_greg_t elf_gregset_t [ELF_NGREG]
 
typedef double elf_fpreg_t
 
typedef elf_fpreg_t elf_fpregset_t [ELF_NFPREG]
 

Enumerations

enum  { ELF_ARCH = CHIP_ELF_TYPE() }
 

Functions

void elf_plat_init (struct pt_regs *regs, unsigned long load_addr)
 
int dump_task_regs (struct task_struct *, elf_gregset_t *)
 
int arch_setup_additional_pages (struct linux_binprm *bprm, int executable_stack)
 

Macro Definition Documentation

#define ARCH_HAS_SETUP_ADDITIONAL_PAGES

Definition at line 130 of file elf.h.

#define ELF_ARCH   ELF_ARCH

Definition at line 59 of file elf.h.

#define elf_check_arch (   x)
Value:
((x)->e_ident[EI_CLASS] == ELF_CLASS && \
(x)->e_ident[EI_DATA] == ELF_DATA && \
(x)->e_machine == CHIP_ELF_TYPE())

Definition at line 64 of file elf.h.

#define ELF_CLASS   ELFCLASS32

Definition at line 45 of file elf.h.

#define ELF_CORE_COPY_FPREGS (   t,
  fpu 
)    0

Definition at line 104 of file elf.h.

#define ELF_CORE_COPY_REGS (   _dest,
  _regs 
)
Value:
memcpy((char *) &_dest, (char *) _regs, \
sizeof(struct pt_regs));

Definition at line 99 of file elf.h.

#define ELF_CORE_COPY_TASK_REGS (   tsk,
  elf_regs 
)    dump_task_regs(tsk, elf_regs)

Definition at line 125 of file elf.h.

#define ELF_DATA   ELFDATA2LSB

Definition at line 50 of file elf.h.

#define ELF_ET_DYN_BASE   (TASK_SIZE / 3 * 2)

Definition at line 97 of file elf.h.

#define ELF_EXEC_PAGESIZE   PAGE_SIZE

Definition at line 89 of file elf.h.

#define ELF_HWCAP   (0)

Definition at line 111 of file elf.h.

#define ELF_NFPREG   0

Definition at line 38 of file elf.h.

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

Definition at line 30 of file elf.h.

#define ELF_PLAT_INIT (   _r,
  load_addr 
)    elf_plat_init(_r, load_addr)

Definition at line 122 of file elf.h.

#define ELF_PLATFORM   (NULL)

Definition at line 118 of file elf.h.

#define EM_TILE64   187

Definition at line 33 of file elf.h.

#define EM_TILEGX   191

Definition at line 35 of file elf.h.

#define EM_TILEPRO   188

Definition at line 34 of file elf.h.

#define R_TILE_32   1

Definition at line 71 of file elf.h.

#define R_TILE_IMM16_X0_HA   29

Definition at line 75 of file elf.h.

#define R_TILE_IMM16_X0_LO   25

Definition at line 73 of file elf.h.

#define R_TILE_IMM16_X1_HA   30

Definition at line 76 of file elf.h.

#define R_TILE_IMM16_X1_LO   26

Definition at line 74 of file elf.h.

#define R_TILE_JOFFLONG_X1   15

Definition at line 72 of file elf.h.

#define SET_PERSONALITY (   ex)    do { } while (0)

Definition at line 128 of file elf.h.

Typedef Documentation

typedef double elf_fpreg_t

Definition at line 39 of file elf.h.

Definition at line 40 of file elf.h.

typedef unsigned long elf_greg_t

Definition at line 28 of file elf.h.

Definition at line 31 of file elf.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
ELF_ARCH 

Definition at line 58 of file elf.h.

Function Documentation

int arch_setup_additional_pages ( struct linux_binprm bprm,
int  executable_stack 
)

Definition at line 152 of file vdso.c.

int dump_task_regs ( struct task_struct ,
elf_gregset_t  
)

Definition at line 412 of file process.c.

void elf_plat_init ( struct pt_regs regs,
unsigned long  load_addr 
)

Definition at line 147 of file elf.c.