From cc6148b1d20e18f12a590a2d8b6a00186082fc7a Mon Sep 17 00:00:00 2001 From: David McCullough Date: Tue, 27 Aug 2002 23:11:13 +0000 Subject: Somehow the bit of code that add the offset of envp to argv got lost and envp was a very small number and not an address. I think this fixes most of the SH platform. --- libc/sysdeps/linux/sh/crt0.S | 1 + 1 file changed, 1 insertion(+) (limited to 'libc') diff --git a/libc/sysdeps/linux/sh/crt0.S b/libc/sysdeps/linux/sh/crt0.S index d342f36ac..10915d545 100644 --- a/libc/sysdeps/linux/sh/crt0.S +++ b/libc/sysdeps/linux/sh/crt0.S @@ -62,6 +62,7 @@ _start: mov r4,r6 add #1,r6 shll2 r6 + add r5,r6 /* call main */ mov.l L_main, r0 -- cgit v1.2.3