summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2002-08-27 23:11:13 +0000
committerDavid McCullough <davidm@snapgear.com>2002-08-27 23:11:13 +0000
commitcc6148b1d20e18f12a590a2d8b6a00186082fc7a (patch)
treef5b38f2f780f9b3144d5a800070c7eb446784eca /libc/sysdeps/linux/sh
parente647e8e70e32a50ade50929bcdfe561fe7371c8e (diff)
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.
Diffstat (limited to 'libc/sysdeps/linux/sh')
-rw-r--r--libc/sysdeps/linux/sh/crt0.S1
1 files changed, 1 insertions, 0 deletions
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