aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-11-18 15:21:24 +0000
committerNick Clifton <nickc@redhat.com>2002-11-18 15:21:24 +0000
commit28ecb2f58e61e875b2bc502a269a30d58191df52 (patch)
treee94049a42eb9ae9ff903c89c71e982b03e259b4c /newlib/libc
parentdea65104725c6eb0beb315563ad330ac8895da1d (diff)
downloadnewlib-28ecb2f58e61e875b2bc502a269a30d58191df52.zip
newlib-28ecb2f58e61e875b2bc502a269a30d58191df52.tar.gz
newlib-28ecb2f58e61e875b2bc502a269a30d58191df52.tar.bz2
Add NULL to end of argv array.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/sys/arm/crt0.S7
1 files changed, 7 insertions, 0 deletions
diff --git a/newlib/libc/sys/arm/crt0.S b/newlib/libc/sys/arm/crt0.S
index 067fa89..581da12 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__