| Kernel v2.4.14-pre8 /fs/binfmt_aout.c |
|---|
 2.4.14-pre8
 fs
 binfmt_aout.c
diff -u --recursive --new-file v2.4.13/linux/fs/binfmt_aout.c linux/fs/binfmt_aout.c
--- v2.4.13/linux/fs/binfmt_aout.c Tue Oct 9 17:06:53 2001
+++ linux/fs/binfmt_aout.c Fri Nov 2 17:39:20 2001
@@ -285,13 +285,15 @@
return retval;
/* OK, This is the point of no return */
-#if !defined(__sparc__)
- set_personality(PER_LINUX);
-#else
+#if defined(__alpha__)
+ SET_AOUT_PERSONALITY(bprm, ex);
+#elif defined(__sparc__)
set_personality(PER_SUNOS);
#if !defined(__sparc_v9__)
memcpy(¤t->thread.core_exec, &ex, sizeof(struct exec));
#endif
+#else
+ set_personality(PER_LINUX);
#endif
current->mm->end_code = ex.a_text +
|