X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fia64%2Fia32%2Fbinfmt_elf32.c;h=e6525f67897c0b8c042718c002313fa8a0c3028e;hb=1be35e94e1da3669db492995cd2c8b1a37016b11;hp=299c1531516a46446f166f5d96ef5d2a102b37b9;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/arch/ia64/ia32/binfmt_elf32.c b/arch/ia64/ia32/binfmt_elf32.c index 299c15315..e6525f678 100644 --- a/arch/ia64/ia32/binfmt_elf32.c +++ b/arch/ia64/ia32/binfmt_elf32.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include @@ -42,8 +41,6 @@ static void elf32_set_personality (void); #undef SET_PERSONALITY #define SET_PERSONALITY(ex, ibcs2) elf32_set_personality() -#define elf_read_implies_exec(ex, have_pt_gnu_stack) (!(have_pt_gnu_stack)) - /* Ugly but avoids duplication */ #include "../../../fs/binfmt_elf.c" @@ -205,10 +202,6 @@ ia32_setup_arg_pages (struct linux_binprm *bprm, int executable_stack) } up_write(¤t->mm->mmap_sem); - /* Can't do it in ia64_elf32_init(). Needs to be done before calls to - elf32_map() */ - current->thread.ppl = ia32_init_pp_list(); - return 0; } @@ -218,6 +211,7 @@ elf32_set_personality (void) set_personality(PER_LINUX32); current->thread.map_base = IA32_PAGE_OFFSET/3; current->thread.task_size = IA32_PAGE_OFFSET; /* use what Linux/x86 uses... */ + current->thread.flags |= IA64_THREAD_XSTACK; /* data must be executable */ set_fs(USER_DS); /* set addr limit for new TASK_SIZE */ }