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/hwcap.h>
#include <asm/ptrace.h>
#include <asm/user.h>

Go to the source code of this file.

Macros

#define ELF_NGREG   (sizeof (struct pt_regs) / sizeof(elf_greg_t))
 
#define EM_AARCH64   183
 
#define R_ARM_NONE   0
 
#define R_AARCH64_NONE   256
 
#define R_AARCH64_ABS64   257
 
#define R_AARCH64_ABS32   258
 
#define R_AARCH64_ABS16   259
 
#define R_AARCH64_PREL64   260
 
#define R_AARCH64_PREL32   261
 
#define R_AARCH64_PREL16   262
 
#define R_AARCH64_MOVW_UABS_G0   263
 
#define R_AARCH64_MOVW_UABS_G0_NC   264
 
#define R_AARCH64_MOVW_UABS_G1   265
 
#define R_AARCH64_MOVW_UABS_G1_NC   266
 
#define R_AARCH64_MOVW_UABS_G2   267
 
#define R_AARCH64_MOVW_UABS_G2_NC   268
 
#define R_AARCH64_MOVW_UABS_G3   269
 
#define R_AARCH64_MOVW_SABS_G0   270
 
#define R_AARCH64_MOVW_SABS_G1   271
 
#define R_AARCH64_MOVW_SABS_G2   272
 
#define R_AARCH64_LD_PREL_LO19   273
 
#define R_AARCH64_ADR_PREL_LO21   274
 
#define R_AARCH64_ADR_PREL_PG_HI21   275
 
#define R_AARCH64_ADR_PREL_PG_HI21_NC   276
 
#define R_AARCH64_ADD_ABS_LO12_NC   277
 
#define R_AARCH64_LDST8_ABS_LO12_NC   278
 
#define R_AARCH64_TSTBR14   279
 
#define R_AARCH64_CONDBR19   280
 
#define R_AARCH64_JUMP26   282
 
#define R_AARCH64_CALL26   283
 
#define R_AARCH64_LDST16_ABS_LO12_NC   284
 
#define R_AARCH64_LDST32_ABS_LO12_NC   285
 
#define R_AARCH64_LDST64_ABS_LO12_NC   286
 
#define R_AARCH64_LDST128_ABS_LO12_NC   299
 
#define R_AARCH64_MOVW_PREL_G0   287
 
#define R_AARCH64_MOVW_PREL_G0_NC   288
 
#define R_AARCH64_MOVW_PREL_G1   289
 
#define R_AARCH64_MOVW_PREL_G1_NC   290
 
#define R_AARCH64_MOVW_PREL_G2   291
 
#define R_AARCH64_MOVW_PREL_G2_NC   292
 
#define R_AARCH64_MOVW_PREL_G3   293
 
#define ELF_CLASS   ELFCLASS64
 
#define ELF_DATA   ELFDATA2LSB
 
#define ELF_ARCH   EM_AARCH64
 
#define ELF_PLATFORM_SIZE   16
 
#define ELF_PLATFORM   ("aarch64")
 
#define elf_check_arch(x)   ((x)->e_machine == EM_AARCH64)
 
#define elf_read_implies_exec(ex, stk)   (stk != EXSTACK_DISABLE_X)
 
#define CORE_DUMP_USE_REGSET
 
#define ELF_EXEC_PAGESIZE   PAGE_SIZE
 
#define ELF_ET_DYN_BASE   (randomize_et_dyn(2 * TASK_SIZE_64 / 3))
 
#define ELF_PLAT_INIT(_r, load_addr)   (_r)->regs[0] = 0
 
#define SET_PERSONALITY(ex)   clear_thread_flag(TIF_32BIT);
 
#define ARCH_DLINFO
 
#define ARCH_HAS_SETUP_ADDITIONAL_PAGES
 
#define STACK_RND_MASK   (0x3ffff >> (PAGE_SHIFT - 12))
 
#define arch_randomize_brk   arch_randomize_brk
 

Typedefs

typedef unsigned long elf_greg_t
 
typedef elf_greg_t elf_gregset_t [ELF_NGREG]
 
typedef struct user_fpsimd_state elf_fpregset_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)
 

Macro Definition Documentation

#define ARCH_DLINFO
Value:
do { \
NEW_AUX_ENT(AT_SYSINFO_EHDR, \
(elf_addr_t)current->mm->context.vdso); \
} while (0)

Definition at line 126 of file elf.h.

#define ARCH_HAS_SETUP_ADDITIONAL_PAGES

Definition at line 132 of file elf.h.

#define arch_randomize_brk   arch_randomize_brk

Definition at line 148 of file elf.h.

#define CORE_DUMP_USE_REGSET

Definition at line 105 of file elf.h.

#define ELF_ARCH   EM_AARCH64

Definition at line 93 of file elf.h.

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

Definition at line 101 of file elf.h.

#define ELF_CLASS   ELFCLASS64

Definition at line 91 of file elf.h.

#define ELF_DATA   ELFDATA2LSB

Definition at line 92 of file elf.h.

#define ELF_ET_DYN_BASE   (randomize_et_dyn(2 * TASK_SIZE_64 / 3))

Definition at line 115 of file elf.h.

#define ELF_EXEC_PAGESIZE   PAGE_SIZE

Definition at line 106 of file elf.h.

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

Definition at line 29 of file elf.h.

#define ELF_PLAT_INIT (   _r,
  load_addr 
)    (_r)->regs[0] = 0

Definition at line 122 of file elf.h.

#define ELF_PLATFORM   ("aarch64")

Definition at line 96 of file elf.h.

#define ELF_PLATFORM_SIZE   16

Definition at line 95 of file elf.h.

#define elf_read_implies_exec (   ex,
  stk 
)    (stk != EXSTACK_DISABLE_X)

Definition at line 103 of file elf.h.

#define EM_AARCH64   183

Definition at line 33 of file elf.h.

#define R_AARCH64_ABS16   259

Definition at line 46 of file elf.h.

#define R_AARCH64_ABS32   258

Definition at line 45 of file elf.h.

#define R_AARCH64_ABS64   257

Definition at line 44 of file elf.h.

#define R_AARCH64_ADD_ABS_LO12_NC   277

Definition at line 68 of file elf.h.

#define R_AARCH64_ADR_PREL_LO21   274

Definition at line 65 of file elf.h.

#define R_AARCH64_ADR_PREL_PG_HI21   275

Definition at line 66 of file elf.h.

#define R_AARCH64_ADR_PREL_PG_HI21_NC   276

Definition at line 67 of file elf.h.

#define R_AARCH64_CALL26   283

Definition at line 74 of file elf.h.

#define R_AARCH64_CONDBR19   280

Definition at line 72 of file elf.h.

#define R_AARCH64_JUMP26   282

Definition at line 73 of file elf.h.

#define R_AARCH64_LD_PREL_LO19   273

Definition at line 64 of file elf.h.

#define R_AARCH64_LDST128_ABS_LO12_NC   299

Definition at line 78 of file elf.h.

#define R_AARCH64_LDST16_ABS_LO12_NC   284

Definition at line 75 of file elf.h.

#define R_AARCH64_LDST32_ABS_LO12_NC   285

Definition at line 76 of file elf.h.

#define R_AARCH64_LDST64_ABS_LO12_NC   286

Definition at line 77 of file elf.h.

#define R_AARCH64_LDST8_ABS_LO12_NC   278

Definition at line 69 of file elf.h.

#define R_AARCH64_MOVW_PREL_G0   287

Definition at line 80 of file elf.h.

#define R_AARCH64_MOVW_PREL_G0_NC   288

Definition at line 81 of file elf.h.

#define R_AARCH64_MOVW_PREL_G1   289

Definition at line 82 of file elf.h.

#define R_AARCH64_MOVW_PREL_G1_NC   290

Definition at line 83 of file elf.h.

#define R_AARCH64_MOVW_PREL_G2   291

Definition at line 84 of file elf.h.

#define R_AARCH64_MOVW_PREL_G2_NC   292

Definition at line 85 of file elf.h.

#define R_AARCH64_MOVW_PREL_G3   293

Definition at line 86 of file elf.h.

#define R_AARCH64_MOVW_SABS_G0   270

Definition at line 60 of file elf.h.

#define R_AARCH64_MOVW_SABS_G1   271

Definition at line 61 of file elf.h.

#define R_AARCH64_MOVW_SABS_G2   272

Definition at line 62 of file elf.h.

#define R_AARCH64_MOVW_UABS_G0   263

Definition at line 52 of file elf.h.

#define R_AARCH64_MOVW_UABS_G0_NC   264

Definition at line 53 of file elf.h.

#define R_AARCH64_MOVW_UABS_G1   265

Definition at line 54 of file elf.h.

#define R_AARCH64_MOVW_UABS_G1_NC   266

Definition at line 55 of file elf.h.

#define R_AARCH64_MOVW_UABS_G2   267

Definition at line 56 of file elf.h.

#define R_AARCH64_MOVW_UABS_G2_NC   268

Definition at line 57 of file elf.h.

#define R_AARCH64_MOVW_UABS_G3   269

Definition at line 58 of file elf.h.

#define R_AARCH64_NONE   256

Definition at line 41 of file elf.h.

#define R_AARCH64_PREL16   262

Definition at line 49 of file elf.h.

#define R_AARCH64_PREL32   261

Definition at line 48 of file elf.h.

#define R_AARCH64_PREL64   260

Definition at line 47 of file elf.h.

#define R_AARCH64_TSTBR14   279

Definition at line 71 of file elf.h.

#define R_ARM_NONE   0

Definition at line 40 of file elf.h.

#define SET_PERSONALITY (   ex)    clear_thread_flag(TIF_32BIT);

Definition at line 124 of file elf.h.

#define STACK_RND_MASK   (0x3ffff >> (PAGE_SHIFT - 12))

Definition at line 143 of file elf.h.

Typedef Documentation

Definition at line 31 of file elf.h.

typedef unsigned long elf_greg_t

Definition at line 27 of file elf.h.

Definition at line 30 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.