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 <linux/sched.h>
#include <asm/page.h>
#include <asm/string.h>
#include <uapi/asm/elf.h>

Go to the source code of this file.

Macros

#define elf_check_arch(x)   ((x)->e_machine == ELF_ARCH)
 
#define compat_elf_check_arch(x)   ((x)->e_machine == EM_PPC)
 
#define CORE_DUMP_USE_REGSET
 
#define ELF_EXEC_PAGESIZE   PAGE_SIZE
 
#define ELF_ET_DYN_BASE   (randomize_et_dyn(0x20000000))
 
#define PPC_ELF_CORE_COPY_REGS(elf_regs, regs)
 
#define ELF_CORE_COPY_REGS(gregs, regs)   ppc_elf_core_copy_regs(gregs, regs);
 
#define ELF_HWCAP   (cur_cpu_spec->cpu_user_features)
 
#define ELF_PLATFORM   (cur_cpu_spec->platform)
 
#define ELF_BASE_PLATFORM   (powerpc_base_platform)
 
#define SET_PERSONALITY(ex)   set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
 
#define elf_read_implies_exec(ex, exec_stk)   (exec_stk == EXSTACK_DEFAULT)
 
#define ARCH_HAS_SETUP_ADDITIONAL_PAGES
 
#define VDSO_AUX_ENT(a, b)   NEW_AUX_ENT(a,b)
 
#define STACK_RND_MASK
 
#define arch_randomize_brk   arch_randomize_brk
 

Typedefs

typedef elf_vrregset_t elf_fpxregset_t
 

Functions

unsigned long randomize_et_dyn (unsigned long base)
 
int arch_setup_additional_pages (struct linux_binprm *bprm, int uses_interp)
 
unsigned long arch_randomize_brk (struct mm_struct *mm)
 

Variables

int dcache_bsize
 
int icache_bsize
 
int ucache_bsize
 

Macro Definition Documentation

#define ARCH_HAS_SETUP_ADDITIONAL_PAGES

Definition at line 116 of file elf.h.

#define arch_randomize_brk   arch_randomize_brk

Definition at line 128 of file elf.h.

#define compat_elf_check_arch (   x)    ((x)->e_machine == EM_PPC)

Definition at line 21 of file elf.h.

#define CORE_DUMP_USE_REGSET

Definition at line 23 of file elf.h.

#define ELF_BASE_PLATFORM   (powerpc_base_platform)

Definition at line 77 of file elf.h.

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

Definition at line 20 of file elf.h.

#define ELF_CORE_COPY_REGS (   gregs,
  regs 
)    ppc_elf_core_copy_regs(gregs, regs);

Definition at line 56 of file elf.h.

#define ELF_ET_DYN_BASE   (randomize_et_dyn(0x20000000))

Definition at line 32 of file elf.h.

#define ELF_EXEC_PAGESIZE   PAGE_SIZE

Definition at line 24 of file elf.h.

#define ELF_HWCAP   (cur_cpu_spec->cpu_user_features)

Definition at line 63 of file elf.h.

#define ELF_PLATFORM   (cur_cpu_spec->platform)

Definition at line 69 of file elf.h.

#define elf_read_implies_exec (   ex,
  exec_stk 
)    (exec_stk == EXSTACK_DEFAULT)

Definition at line 108 of file elf.h.

#define PPC_ELF_CORE_COPY_REGS (   elf_regs,
  regs 
)
Value:
int i, nregs = min(sizeof(*regs) / sizeof(unsigned long), \
(size_t)ELF_NGREG); \
for (i = 0; i < nregs; i++) \
elf_regs[i] = ((unsigned long *) regs)[i]; \
memset(&elf_regs[i], 0, (ELF_NGREG - i) * sizeof(elf_regs[0]))

Definition at line 43 of file elf.h.

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

Definition at line 106 of file elf.h.

#define STACK_RND_MASK
Value:
(0x7ff >> (PAGE_SHIFT - 12)) : \
(0x3ffff >> (PAGE_SHIFT - 12)))

Definition at line 123 of file elf.h.

#define VDSO_AUX_ENT (   a,
  b 
)    NEW_AUX_ENT(a,b)

Definition at line 120 of file elf.h.

Typedef Documentation

Definition at line 58 of file elf.h.

Function Documentation

unsigned long arch_randomize_brk ( struct mm_struct mm)

Definition at line 454 of file process.c.

int arch_setup_additional_pages ( struct linux_binprm bprm,
int  uses_interp 
)

Definition at line 152 of file vdso.c.

unsigned long randomize_et_dyn ( unsigned long  base)

Definition at line 387 of file process.c.

Variable Documentation

int dcache_bsize

Definition at line 68 of file setup_32.c.

int icache_bsize

Definition at line 69 of file setup_32.c.

int ucache_bsize

Definition at line 70 of file setup_32.c.