From 28ecb2f58e61e875b2bc502a269a30d58191df52 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 18 Nov 2002 15:21:24 +0000 Subject: Add NULL to end of argv array. --- newlib/libc/sys/arm/crt0.S | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'newlib/libc/sys/arm') 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__ -- cgit v1.2.3