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

Go to the source code of this file.

Macros

#define STO_ALPHA_NOPV   0x80
 
#define STO_ALPHA_STD_GPLOAD   0x88
 
#define R_ALPHA_NONE   0 /* No reloc */
 
#define R_ALPHA_REFLONG   1 /* Direct 32 bit */
 
#define R_ALPHA_REFQUAD   2 /* Direct 64 bit */
 
#define R_ALPHA_GPREL32   3 /* GP relative 32 bit */
 
#define R_ALPHA_LITERAL   4 /* GP relative 16 bit w/optimization */
 
#define R_ALPHA_LITUSE   5 /* Optimization hint for LITERAL */
 
#define R_ALPHA_GPDISP   6 /* Add displacement to GP */
 
#define R_ALPHA_BRADDR   7 /* PC+4 relative 23 bit shifted */
 
#define R_ALPHA_HINT   8 /* PC+4 relative 16 bit shifted */
 
#define R_ALPHA_SREL16   9 /* PC relative 16 bit */
 
#define R_ALPHA_SREL32   10 /* PC relative 32 bit */
 
#define R_ALPHA_SREL64   11 /* PC relative 64 bit */
 
#define R_ALPHA_GPRELHIGH   17 /* GP relative 32 bit, high 16 bits */
 
#define R_ALPHA_GPRELLOW   18 /* GP relative 32 bit, low 16 bits */
 
#define R_ALPHA_GPREL16   19 /* GP relative 16 bit */
 
#define R_ALPHA_COPY   24 /* Copy symbol at runtime */
 
#define R_ALPHA_GLOB_DAT   25 /* Create GOT entry */
 
#define R_ALPHA_JMP_SLOT   26 /* Create PLT entry */
 
#define R_ALPHA_RELATIVE   27 /* Adjust by program base */
 
#define R_ALPHA_BRSGP   28
 
#define R_ALPHA_TLSGD   29
 
#define R_ALPHA_TLS_LDM   30
 
#define R_ALPHA_DTPMOD64   31
 
#define R_ALPHA_GOTDTPREL   32
 
#define R_ALPHA_DTPREL64   33
 
#define R_ALPHA_DTPRELHI   34
 
#define R_ALPHA_DTPRELLO   35
 
#define R_ALPHA_DTPREL16   36
 
#define R_ALPHA_GOTTPREL   37
 
#define R_ALPHA_TPREL64   38
 
#define R_ALPHA_TPRELHI   39
 
#define R_ALPHA_TPRELLO   40
 
#define R_ALPHA_TPREL16   41
 
#define SHF_ALPHA_GPREL   0x10000000
 
#define EF_ALPHA_32BIT   1 /* All addresses are below 2GB */
 
#define ELF_NGREG   33
 
#define ELF_NFPREG   32
 
#define elf_check_arch(x)   ((x)->e_machine == EM_ALPHA)
 
#define ELF_CLASS   ELFCLASS64
 
#define ELF_DATA   ELFDATA2LSB
 
#define ELF_ARCH   EM_ALPHA
 
#define ELF_EXEC_PAGESIZE   8192
 
#define ELF_ET_DYN_BASE   (TASK_UNMAPPED_BASE + 0x1000000)
 
#define ELF_PLAT_INIT(_r, load_addr)   _r->r0 = 0
 
#define ELF_CORE_COPY_REGS(DEST, REGS)   dump_elf_thread(DEST, REGS, current_thread_info());
 
#define ELF_CORE_COPY_TASK_REGS(TASK, DEST)   dump_elf_task(*(DEST), TASK)
 
#define ELF_CORE_COPY_FPREGS(TASK, DEST)   dump_elf_task_fp(*(DEST), TASK)
 
#define ELF_HWCAP   (~amask(-1))
 
#define ELF_PLATFORM
 
#define SET_PERSONALITY(EX)
 
#define ARCH_DLINFO
 

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]
 

Functions

void dump_elf_thread (elf_greg_t *dest, struct pt_regs *pt, struct thread_info *ti)
 
int dump_elf_task (elf_greg_t *dest, struct task_struct *task)
 
int dump_elf_task_fp (elf_fpreg_t *dest, struct task_struct *task)
 

Variables

int alpha_l1i_cacheshape
 
int alpha_l1d_cacheshape
 
int alpha_l2_cacheshape
 
int alpha_l3_cacheshape
 

Macro Definition Documentation

#define ARCH_DLINFO
Value:

Definition at line 157 of file elf.h.

#define EF_ALPHA_32BIT   1 /* All addresses are below 2GB */

Definition at line 53 of file elf.h.

#define ELF_ARCH   EM_ALPHA

Definition at line 83 of file elf.h.

#define elf_check_arch (   x)    ((x)->e_machine == EM_ALPHA)

Definition at line 76 of file elf.h.

#define ELF_CLASS   ELFCLASS64

Definition at line 81 of file elf.h.

#define ELF_CORE_COPY_FPREGS (   TASK,
  DEST 
)    dump_elf_task_fp(*(DEST), TASK)

Definition at line 125 of file elf.h.

#define ELF_CORE_COPY_REGS (   DEST,
  REGS 
)    dump_elf_thread(DEST, REGS, current_thread_info());

Definition at line 113 of file elf.h.

#define ELF_CORE_COPY_TASK_REGS (   TASK,
  DEST 
)    dump_elf_task(*(DEST), TASK)

Definition at line 119 of file elf.h.

#define ELF_DATA   ELFDATA2LSB

Definition at line 82 of file elf.h.

#define ELF_ET_DYN_BASE   (TASK_UNMAPPED_BASE + 0x1000000)

Definition at line 92 of file elf.h.

#define ELF_EXEC_PAGESIZE   8192

Definition at line 85 of file elf.h.

#define ELF_HWCAP   (~amask(-1))

Definition at line 132 of file elf.h.

#define ELF_NFPREG   32

Definition at line 65 of file elf.h.

#define ELF_NGREG   33

Definition at line 64 of file elf.h.

#define ELF_PLAT_INIT (   _r,
  load_addr 
)    _r->r0 = 0

Definition at line 103 of file elf.h.

#define ELF_PLATFORM
Value:
({ \
enum implver_enum i_ = implver(); \
( i_ == IMPLVER_EV4 ? "ev4" \
: i_ == IMPLVER_EV5 \
? (amask(AMASK_BWX) ? "ev5" : "ev56") \
: amask (AMASK_CIX) ? "ev6" : "ev67"); \
})

Definition at line 138 of file elf.h.

#define R_ALPHA_BRADDR   7 /* PC+4 relative 23 bit shifted */

Definition at line 22 of file elf.h.

#define R_ALPHA_BRSGP   28

Definition at line 34 of file elf.h.

#define R_ALPHA_COPY   24 /* Copy symbol at runtime */

Definition at line 30 of file elf.h.

#define R_ALPHA_DTPMOD64   31

Definition at line 37 of file elf.h.

#define R_ALPHA_DTPREL16   36

Definition at line 42 of file elf.h.

#define R_ALPHA_DTPREL64   33

Definition at line 39 of file elf.h.

#define R_ALPHA_DTPRELHI   34

Definition at line 40 of file elf.h.

#define R_ALPHA_DTPRELLO   35

Definition at line 41 of file elf.h.

#define R_ALPHA_GLOB_DAT   25 /* Create GOT entry */

Definition at line 31 of file elf.h.

#define R_ALPHA_GOTDTPREL   32

Definition at line 38 of file elf.h.

#define R_ALPHA_GOTTPREL   37

Definition at line 43 of file elf.h.

#define R_ALPHA_GPDISP   6 /* Add displacement to GP */

Definition at line 21 of file elf.h.

#define R_ALPHA_GPREL16   19 /* GP relative 16 bit */

Definition at line 29 of file elf.h.

#define R_ALPHA_GPREL32   3 /* GP relative 32 bit */

Definition at line 18 of file elf.h.

#define R_ALPHA_GPRELHIGH   17 /* GP relative 32 bit, high 16 bits */

Definition at line 27 of file elf.h.

#define R_ALPHA_GPRELLOW   18 /* GP relative 32 bit, low 16 bits */

Definition at line 28 of file elf.h.

#define R_ALPHA_HINT   8 /* PC+4 relative 16 bit shifted */

Definition at line 23 of file elf.h.

#define R_ALPHA_JMP_SLOT   26 /* Create PLT entry */

Definition at line 32 of file elf.h.

#define R_ALPHA_LITERAL   4 /* GP relative 16 bit w/optimization */

Definition at line 19 of file elf.h.

#define R_ALPHA_LITUSE   5 /* Optimization hint for LITERAL */

Definition at line 20 of file elf.h.

#define R_ALPHA_NONE   0 /* No reloc */

Definition at line 15 of file elf.h.

#define R_ALPHA_REFLONG   1 /* Direct 32 bit */

Definition at line 16 of file elf.h.

#define R_ALPHA_REFQUAD   2 /* Direct 64 bit */

Definition at line 17 of file elf.h.

#define R_ALPHA_RELATIVE   27 /* Adjust by program base */

Definition at line 33 of file elf.h.

#define R_ALPHA_SREL16   9 /* PC relative 16 bit */

Definition at line 24 of file elf.h.

#define R_ALPHA_SREL32   10 /* PC relative 32 bit */

Definition at line 25 of file elf.h.

#define R_ALPHA_SREL64   11 /* PC relative 64 bit */

Definition at line 26 of file elf.h.

#define R_ALPHA_TLS_LDM   30

Definition at line 36 of file elf.h.

#define R_ALPHA_TLSGD   29

Definition at line 35 of file elf.h.

#define R_ALPHA_TPREL16   41

Definition at line 47 of file elf.h.

#define R_ALPHA_TPREL64   38

Definition at line 44 of file elf.h.

#define R_ALPHA_TPRELHI   39

Definition at line 45 of file elf.h.

#define R_ALPHA_TPRELLO   40

Definition at line 46 of file elf.h.

#define SET_PERSONALITY (   EX)
Value:

Definition at line 147 of file elf.h.

#define SHF_ALPHA_GPREL   0x10000000

Definition at line 49 of file elf.h.

#define STO_ALPHA_NOPV   0x80

Definition at line 9 of file elf.h.

#define STO_ALPHA_STD_GPLOAD   0x88

Definition at line 10 of file elf.h.

Typedef Documentation

typedef double elf_fpreg_t

Definition at line 70 of file elf.h.

Definition at line 71 of file elf.h.

typedef unsigned long elf_greg_t

Definition at line 67 of file elf.h.

Definition at line 68 of file elf.h.

Function Documentation

int dump_elf_task ( elf_greg_t dest,
struct task_struct task 
)

Definition at line 373 of file process.c.

int dump_elf_task_fp ( elf_fpreg_t dest,
struct task_struct task 
)

Definition at line 381 of file process.c.

void dump_elf_thread ( elf_greg_t dest,
struct pt_regs pt,
struct thread_info ti 
)

Definition at line 327 of file process.c.

Variable Documentation

int alpha_l1d_cacheshape

Definition at line 72 of file setup.c.

int alpha_l1i_cacheshape

Definition at line 71 of file setup.c.

int alpha_l2_cacheshape

Definition at line 73 of file setup.c.

int alpha_l3_cacheshape

Definition at line 74 of file setup.c.