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:
Diffstat (limited to 'newlib/libc/sys/arm')
-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 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__