diff options
Diffstat (limited to 'newlib/libc/sys/arm/crt0.S')
-rw-r--r-- | newlib/libc/sys/arm/crt0.S | 7 |
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__ |