Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
binfmt_elf.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/mman.h>
#include <linux/errno.h>
#include <linux/signal.h>
#include <linux/binfmts.h>
#include <linux/string.h>
#include <linux/file.h>
#include <linux/slab.h>
#include <linux/personality.h>
#include <linux/elfcore.h>
#include <linux/init.h>
#include <linux/highuid.h>
#include <linux/compiler.h>
#include <linux/highmem.h>
#include <linux/pagemap.h>
#include <linux/vmalloc.h>
#include <linux/security.h>
#include <linux/random.h>
#include <linux/elf.h>
#include <linux/utsname.h>
#include <linux/coredump.h>
#include <asm/uaccess.h>
#include <asm/param.h>
#include <asm/page.h>

Go to the source code of this file.

Macros

#define user_long_t   long
 
#define user_siginfo_t   siginfo_t
 
#define elf_core_dump   NULL
 
#define ELF_MIN_ALIGN   PAGE_SIZE
 
#define ELF_CORE_EFLAGS   0
 
#define ELF_PAGESTART(_v)   ((_v) & ~(unsigned long)(ELF_MIN_ALIGN-1))
 
#define ELF_PAGEOFFSET(_v)   ((_v) & (ELF_MIN_ALIGN-1))
 
#define ELF_PAGEALIGN(_v)   (((_v) + ELF_MIN_ALIGN - 1) & ~(ELF_MIN_ALIGN - 1))
 
#define BAD_ADDR(x)   ((unsigned long)(x) >= TASK_SIZE)
 
#define STACK_ADD(sp, items)   ((elf_addr_t __user *)(sp) - (items))
 
#define STACK_ROUND(sp, items)   (((unsigned long) (sp - items)) &~ 15UL)
 
#define STACK_ALLOC(sp, len)   ({ sp -= len ; sp; })
 
#define ELF_BASE_PLATFORM   NULL
 
#define NEW_AUX_ENT(id, val)
 
#define INTERPRETER_NONE   0
 
#define INTERPRETER_ELF   2
 
#define STACK_RND_MASK   (0x7ff >> (PAGE_SHIFT - 12)) /* 8MB of VA */
 

Functions

 core_initcall (init_elf_binfmt)
 
 module_exit (exit_elf_binfmt)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define BAD_ADDR (   x)    ((unsigned long)(x) >= TASK_SIZE)

Definition at line 84 of file binfmt_elf.c.

#define ELF_BASE_PLATFORM   NULL

Definition at line 139 of file binfmt_elf.c.

#define elf_core_dump   NULL

Definition at line 59 of file binfmt_elf.c.

#define ELF_CORE_EFLAGS   0

Definition at line 69 of file binfmt_elf.c.

#define ELF_MIN_ALIGN   PAGE_SIZE

Definition at line 65 of file binfmt_elf.c.

#define ELF_PAGEALIGN (   _v)    (((_v) + ELF_MIN_ALIGN - 1) & ~(ELF_MIN_ALIGN - 1))

Definition at line 74 of file binfmt_elf.c.

#define ELF_PAGEOFFSET (   _v)    ((_v) & (ELF_MIN_ALIGN-1))

Definition at line 73 of file binfmt_elf.c.

#define ELF_PAGESTART (   _v)    ((_v) & ~(unsigned long)(ELF_MIN_ALIGN-1))

Definition at line 72 of file binfmt_elf.c.

#define INTERPRETER_ELF   2

Definition at line 539 of file binfmt_elf.c.

#define INTERPRETER_NONE   0

Definition at line 538 of file binfmt_elf.c.

#define NEW_AUX_ENT (   id,
  val 
)
Value:
do { \
elf_info[ei_index++] = id; \
elf_info[ei_index++] = val; \
} while (0)
#define STACK_ADD (   sp,
  items 
)    ((elf_addr_t __user *)(sp) - (items))

Definition at line 127 of file binfmt_elf.c.

#define STACK_ALLOC (   sp,
  len 
)    ({ sp -= len ; sp; })

Definition at line 130 of file binfmt_elf.c.

#define STACK_RND_MASK   (0x7ff >> (PAGE_SHIFT - 12)) /* 8MB of VA */

Definition at line 542 of file binfmt_elf.c.

#define STACK_ROUND (   sp,
  items 
)    (((unsigned long) (sp - items)) &~ 15UL)

Definition at line 128 of file binfmt_elf.c.

#define user_long_t   long

Definition at line 41 of file binfmt_elf.c.

#define user_siginfo_t   siginfo_t

Definition at line 44 of file binfmt_elf.c.

Function Documentation

core_initcall ( init_elf_binfmt  )
module_exit ( exit_elf_binfmt  )
MODULE_LICENSE ( "GPL"  )