Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-11-18 18:21:24 +0300
committerNick Clifton <nickc@redhat.com>2002-11-18 18:21:24 +0300
commit28ecb2f58e61e875b2bc502a269a30d58191df52 (patch)
treee94049a42eb9ae9ff903c89c71e982b03e259b4c
parentdea65104725c6eb0beb315563ad330ac8895da1d (diff)
Add NULL to end of argv array.
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/sys/arm/crt0.S7
2 files changed, 11 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index f449c2cc9..63e1be2b7 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2002-11-18 Nick Clifton <nickc@redhat.com>
+
+ * libc/sys/arm/crt0.S: Add NULL to end of argv array.
+
2002-11-14 Jeff Johnston <jjohnstn@redhat.com>
* testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
diff --git a/newlib/libc/sys/arm/crt0.S b/newlib/libc/sys/arm/crt0.S
index 067fa890e..581da12d6 100644
--- a/newlib/libc/sys/arm/crt0.S
+++ b/newlib/libc/sys/arm/crt0.S
@@ -181,6 +181,13 @@ __change_mode:
bhi .LC13
#endif
+ /* Push a NULL argument onto the end of the list. */
+ mov r2, #0
+#ifdef __thumb__
+ push {r2}
+#else
+ stmfd sp!, {r1}
+#endif
#endif
#ifdef __USES_INITFINI__