patch-2.3.99-pre9 linux/fs/binfmt_aout.c
Next file: linux/fs/buffer.c
Previous file: linux/fs/bfs/dir.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Mon May 15 12:00:34 2000
- Orig file:
v2.3.99-pre8/linux/fs/binfmt_aout.c
- Orig date:
Thu May 11 15:30:08 2000
diff -u --recursive --new-file v2.3.99-pre8/linux/fs/binfmt_aout.c linux/fs/binfmt_aout.c
@@ -86,6 +86,8 @@
struct user dump;
#if defined(__alpha__)
# define START_DATA(u) (u.start_data)
+#elif defined(__arm__)
+# define START_DATA(u) ((u.u_tsize << PAGE_SHIFT) + u.start_code)
#elif defined(__sparc__)
# define START_DATA(u) (u.u_tsize)
#elif defined(__i386__) || defined(__mc68000__)
@@ -217,7 +219,7 @@
envp = (char **) sp;
sp -= argc+1;
argv = (char **) sp;
-#if defined(__i386__) || defined(__mc68000__)
+#if defined(__i386__) || defined(__mc68000__) || defined(__arm__)
put_user((unsigned long) envp,--sp);
put_user((unsigned long) argv,--sp);
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)