Module Name: src
Committed By: matt
Date: Tue Feb 15 18:07:31 UTC 2011
Modified Files:
src/lib/csu/mips [matt-nb5-mips64]: crt0.c
Log Message:
Fix a BE64 bug not fetching argc correctly
To generate a diff of this commit:
cvs rdiff -u -r1.19.32.1 -r1.19.32.2 src/lib/csu/mips/crt0.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/csu/mips/crt0.c
diff -u src/lib/csu/mips/crt0.c:1.19.32.1 src/lib/csu/mips/crt0.c:1.19.32.2
--- src/lib/csu/mips/crt0.c:1.19.32.1 Sun Aug 30 09:59:26 2009
+++ src/lib/csu/mips/crt0.c Tue Feb 15 18:07:30 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: crt0.c,v 1.19.32.1 2009/08/30 09:59:26 matt Exp $ */
+/* $NetBSD: crt0.c,v 1.19.32.2 2011/02/15 18:07:30 matt Exp $ */
/*
* Copyright (c) 1995 Christopher G. Demetriou
@@ -118,7 +118,7 @@
#endif
- argc = *(int *)ksp;
+ argc = *(long *)ksp;
argv = ksp + 1;
environ = ksp + 2 + argc; /* 2: argc + NULL ending argv */
@@ -163,7 +163,7 @@
* is the entrypoint. (Only needed for old toolchains).
*/
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: crt0.c,v 1.19.32.1 2009/08/30 09:59:26 matt Exp $");
+__RCSID("$NetBSD: crt0.c,v 1.19.32.2 2011/02/15 18:07:30 matt Exp $");
#endif /* LIBC_SCCS and not lint */
#include "common.c"