--- zzzz-none-000/linux-2.4.17/fs/binfmt_aout.c 2001-11-03 01:39:20.000000000 +0000 +++ sangam-fb-322/linux-2.4.17/fs/binfmt_aout.c 2004-11-24 13:22:17.000000000 +0000 @@ -422,7 +422,11 @@ start_thread(regs, ex.a_entry, current->mm->start_stack); if (current->ptrace & PT_PTRACED) send_sig(SIGTRAP, current, 0); +#ifndef __arm__ return 0; +#else + return regs->ARM_r0; +#endif } static int load_aout_library(struct file *file) @@ -452,8 +456,11 @@ /* For QMAGIC, the starting address is 0x20 into the page. We mask this off to get the starting address for the page */ - - start_addr = ex.a_entry & 0xfffff000; +#ifndef __arm__ + start_addr = ex.a_entry & 0xfffff000; +#else + start_addr = ex.a_entry & 0xffff8000; +#endif if ((N_TXTOFF(ex) & ~PAGE_MASK) != 0) { static unsigned long error_time;