patch-2.1.17 linux/fs/binfmt_elf.c

Next file: linux/fs/buffer.c
Previous file: linux/fs/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.16/linux/fs/binfmt_elf.c linux/fs/binfmt_elf.c
@@ -104,6 +104,17 @@
 	 * Force 16 byte alignment here for generality.
 	 */
 	sp = (unsigned long *) (~15UL & (unsigned long) p);
+#ifdef __sparc__
+{
+	unsigned long *csp;
+	csp = sp;
+	csp -= exec ? DLINFO_ITEMS*2 : 2;
+	csp -= envc+1;
+	csp -= argc+1;
+	if (!(((unsigned long) csp) & 4))
+		sp--;
+}
+#endif
 
 	/*
 	 * Put the ELF interpreter info on the stack

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov