--- linux/arch/x86_64/ia32/ia32_binfmt.c.auxv 2005-07-08 11:50:04.000000000 -0700 +++ linux/arch/x86_64/ia32/ia32_binfmt.c 2005-07-26 16:13:58.312017331 -0700 @@ -9,6 +9,7 @@ #include #include #include +#define __ASM_X86_64_ELF_H 1 #include #include #include @@ -181,10 +182,7 @@ struct elf_prpsinfo #define user user32 -#define __ASM_X86_64_ELF_H 1 #define elf_read_implies_exec(ex, have_pt_gnu_stack) (!(have_pt_gnu_stack)) -//#include -#include typedef struct user_i387_ia32_struct elf_fpregset_t; typedef struct user32_fxsr_struct elf_fpxregset_t; --- linux/include/linux/elf.h.auxv 2005-03-01 23:37:49.000000000 -0800 +++ linux/include/linux/elf.h 2005-07-26 16:13:24.185651900 -0700 @@ -181,6 +181,8 @@ typedef __s64 Elf64_Sxword; #define AT_SECURE 23 /* secure mode boolean */ +#define AT_VECTOR_SIZE 42 /* Size of auxiliary table. */ + typedef struct dynamic{ Elf32_Sword d_tag; union{ --- linux/include/linux/sched.h.auxv 2005-07-08 11:50:09.000000000 -0700 +++ linux/include/linux/sched.h 2005-07-26 16:13:24.204648764 -0700 @@ -35,6 +35,8 @@ #include #include +#include /* For AT_VECTOR_SIZE */ + struct exec_domain; /* @@ -243,7 +245,7 @@ struct mm_struct { mm_counter_t _rss; mm_counter_t _anon_rss; - unsigned long saved_auxv[42]; /* for /proc/PID/auxv */ + unsigned long saved_auxv[AT_VECTOR_SIZE]; /* for /proc/PID/auxv */ unsigned dumpable:1; cpumask_t cpu_vm_mask;