mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 20:29:33 +02:00
* keep stack aligned at 8 byte boundary inside the startup code
git-svn-id: trunk@11934 -
This commit is contained in:
parent
d11e72b383
commit
10e0f0e387
@ -46,6 +46,8 @@ _start:
|
||||
/* Save initial stackpointer */
|
||||
ldr ip,=__stkptr
|
||||
str sp,[ip]
|
||||
/* align sp again to 8 byte boundary, needed by eabi */
|
||||
sub sp,sp,#4
|
||||
|
||||
/* Let the libc call main and exit with its return code. */
|
||||
bl PASCALMAIN
|
||||
|
@ -62,9 +62,11 @@ _start:
|
||||
str sp,[a3]
|
||||
str a2,[ip]
|
||||
|
||||
/* Save initial stackpointer */
|
||||
/* Save initial stackpointer */
|
||||
ldr ip,=__stkptr
|
||||
str sp,[ip]
|
||||
/* align sp again to 8 byte boundary, needed by eabi */
|
||||
sub sp,sp,#4
|
||||
|
||||
/* Let the libc call main and exit with its return code. */
|
||||
bl PASCALMAIN
|
||||
|
@ -121,6 +121,9 @@ _start:
|
||||
ldr ip,=__stkptr
|
||||
str sp, [ip]
|
||||
|
||||
/* keep stack aligned as required by eabi */
|
||||
sub sp,sp,#4
|
||||
|
||||
/* Push stack limit */
|
||||
str a3, [sp, #-4]!
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user