Linux Kernel
3.7.1
|
#include <linux/thread_info.h>
#include <asm/ptrace.h>
#include <asm/user.h>
#include <asm/auxvec.h>
#include <asm/vdso.h>
#include <asm/processor.h>
Go to the source code of this file.
Data Structures | |
struct | va_alignment |
Macros | |
#define | ELF_NGREG (sizeof(struct user_regs_struct) / sizeof(elf_greg_t)) |
#define | R_X86_64_NONE 0 /* No reloc */ |
#define | R_X86_64_64 1 /* Direct 64 bit */ |
#define | R_X86_64_PC32 2 /* PC relative 32 bit signed */ |
#define | R_X86_64_GOT32 3 /* 32 bit GOT entry */ |
#define | R_X86_64_PLT32 4 /* 32 bit PLT address */ |
#define | R_X86_64_COPY 5 /* Copy symbol at runtime */ |
#define | R_X86_64_GLOB_DAT 6 /* Create GOT entry */ |
#define | R_X86_64_JUMP_SLOT 7 /* Create PLT entry */ |
#define | R_X86_64_RELATIVE 8 /* Adjust by program base */ |
#define | R_X86_64_GOTPCREL |
#define | R_X86_64_32 10 /* Direct 32 bit zero extended */ |
#define | R_X86_64_32S 11 /* Direct 32 bit sign extended */ |
#define | R_X86_64_16 12 /* Direct 16 bit zero extended */ |
#define | R_X86_64_PC16 13 /* 16 bit sign extended pc relative */ |
#define | R_X86_64_8 14 /* Direct 8 bit sign extended */ |
#define | R_X86_64_PC8 15 /* 8 bit sign extended pc relative */ |
#define | R_X86_64_NUM 16 |
#define | ELF_CLASS ELFCLASS64 |
#define | ELF_DATA ELFDATA2LSB |
#define | ELF_ARCH EM_X86_64 |
#define | elf_check_arch_ia32(x) (((x)->e_machine == EM_386) || ((x)->e_machine == EM_486)) |
#define | elf_check_arch(x) ((x)->e_machine == EM_X86_64) |
#define | compat_elf_check_arch(x) (elf_check_arch_ia32(x) || (x)->e_machine == EM_X86_64) |
#define | ELF_PLAT_INIT(_r, load_addr) elf_common_init(¤t->thread, _r, 0) |
#define | COMPAT_ELF_PLAT_INIT(regs, load_addr) elf_common_init(¤t->thread, regs, __USER_DS) |
#define | compat_start_thread start_thread_ia32 |
#define | COMPAT_SET_PERSONALITY(ex) set_personality_ia32((ex).e_machine == EM_X86_64) |
#define | COMPAT_ELF_PLATFORM ("i686") |
#define | ELF_CORE_COPY_REGS(pr_reg, regs) |
#define | ELF_PLATFORM ("x86_64") |
#define | CORE_DUMP_USE_REGSET |
#define | ELF_EXEC_PAGESIZE 4096 |
#define | ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2) |
#define | ELF_HWCAP (boot_cpu_data.x86_capability[0]) |
#define | SET_PERSONALITY(ex) set_personality_64bit() |
#define | elf_read_implies_exec(ex, executable_stack) (executable_stack != EXSTACK_DISABLE_X) |
#define | ARCH_DLINFO_IA32(vdso_enabled) |
#define | VDSO_HIGH_BASE 0xffffe000U /* CONFIG_COMPAT_VDSO address */ |
#define | STACK_RND_MASK (test_thread_flag(TIF_ADDR32) ? 0x7ff : 0x3fffff) |
#define | ARCH_DLINFO |
#define | ARCH_DLINFO_X32 |
#define | AT_SYSINFO 32 |
#define | COMPAT_ARCH_DLINFO |
#define | COMPAT_ELF_ET_DYN_BASE (TASK_UNMAPPED_BASE + 0x1000000) |
#define | VDSO_CURRENT_BASE ((unsigned long)current->mm->context.vdso) |
#define | VDSO_ENTRY ((unsigned long)VDSO32_SYMBOL(VDSO_CURRENT_BASE, vsyscall)) |
#define | ARCH_HAS_SETUP_ADDITIONAL_PAGES 1 |
#define | compat_arch_setup_additional_pages syscall32_setup_pages |
#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_i387_struct | elf_fpregset_t |
Enumerations | |
enum | align_flags { ALIGN_VA_32 = BIT(0), ALIGN_VA_64 = BIT(1), ALIGN_VDSO = BIT(2), ALIGN_TOPDOWN = BIT(3) } |
Functions | |
void | start_thread_ia32 (struct pt_regs *regs, u32 new_ip, u32 new_sp) |
void | set_personality_ia32 (bool) |
void | set_personality_64bit (void) |
int | arch_setup_additional_pages (struct linux_binprm *bprm, int uses_interp) |
int | x32_setup_additional_pages (struct linux_binprm *bprm, int uses_interp) |
int | syscall32_setup_pages (struct linux_binprm *, int exstack) |
unsigned long | arch_randomize_brk (struct mm_struct *mm) |
unsigned long | align_addr (unsigned long, struct file *, enum align_flags) |
Variables | |
unsigned int | vdso_enabled |
unsigned int | sysctl_vsyscall32 |
int | force_personality32 |
struct va_alignment | ____cacheline_aligned |
struct va_alignment | va_align |
#define ARCH_DLINFO |
#define ARCH_DLINFO_IA32 | ( | vdso_enabled | ) |
#define ARCH_DLINFO_X32 |
#define COMPAT_ARCH_DLINFO |
#define compat_arch_setup_additional_pages syscall32_setup_pages |
#define compat_elf_check_arch | ( | x | ) | (elf_check_arch_ia32(x) || (x)->e_machine == EM_X86_64) |
#define COMPAT_ELF_ET_DYN_BASE (TASK_UNMAPPED_BASE + 0x1000000) |
#define COMPAT_SET_PERSONALITY | ( | ex | ) | set_personality_ia32((ex).e_machine == EM_X86_64) |
#define compat_start_thread start_thread_ia32 |
#define ELF_CLASS ELFCLASS64 |
#define ELF_DATA ELFDATA2LSB |
#define ELF_HWCAP (boot_cpu_data.x86_capability[0]) |
#define ELF_NGREG (sizeof(struct user_regs_struct) / sizeof(elf_greg_t)) |
#define elf_read_implies_exec | ( | ex, | |
executable_stack | |||
) | (executable_stack != EXSTACK_DISABLE_X) |
#define R_X86_64_GOTPCREL |
#define SET_PERSONALITY | ( | ex | ) | set_personality_64bit() |
#define STACK_RND_MASK (test_thread_flag(TIF_ADDR32) ? 0x7ff : 0x3fffff) |
#define VDSO_ENTRY ((unsigned long)VDSO32_SYMBOL(VDSO_CURRENT_BASE, vsyscall)) |
#define VDSO_HIGH_BASE 0xffffe000U /* CONFIG_COMPAT_VDSO address */ |
typedef struct user_i387_struct elf_fpregset_t |
typedef unsigned long elf_greg_t |
typedef elf_greg_t elf_gregset_t[ELF_NGREG] |
enum align_flags |
Definition at line 28 of file sys_x86_64.c.
int arch_setup_additional_pages | ( | struct linux_binprm * | bprm, |
int | uses_interp | ||
) |
Definition at line 374 of file process_64.c.
Definition at line 394 of file process_64.c.
int syscall32_setup_pages | ( | struct linux_binprm * | , |
int | exstack | ||
) |
int x32_setup_additional_pages | ( | struct linux_binprm * | bprm, |
int | uses_interp | ||
) |
unsigned int sysctl_vsyscall32 |
struct va_alignment va_align |