diff options
author | David McCullough <davidm@snapgear.com> | 2002-08-27 23:11:13 +0000 |
---|---|---|
committer | David McCullough <davidm@snapgear.com> | 2002-08-27 23:11:13 +0000 |
commit | cc6148b1d20e18f12a590a2d8b6a00186082fc7a (patch) | |
tree | f5b38f2f780f9b3144d5a800070c7eb446784eca /libc/sysdeps/linux | |
parent | e647e8e70e32a50ade50929bcdfe561fe7371c8e (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')
-rw-r--r-- | libc/sysdeps/linux/sh/crt0.S | 1 |
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 |