mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 02:45:58 +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 */
|
/* Save initial stackpointer */
|
||||||
ldr ip,=__stkptr
|
ldr ip,=__stkptr
|
||||||
str sp,[ip]
|
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. */
|
/* Let the libc call main and exit with its return code. */
|
||||||
bl PASCALMAIN
|
bl PASCALMAIN
|
||||||
|
@ -65,6 +65,8 @@ _start:
|
|||||||
/* Save initial stackpointer */
|
/* Save initial stackpointer */
|
||||||
ldr ip,=__stkptr
|
ldr ip,=__stkptr
|
||||||
str sp,[ip]
|
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. */
|
/* Let the libc call main and exit with its return code. */
|
||||||
bl PASCALMAIN
|
bl PASCALMAIN
|
||||||
|
@ -121,6 +121,9 @@ _start:
|
|||||||
ldr ip,=__stkptr
|
ldr ip,=__stkptr
|
||||||
str sp, [ip]
|
str sp, [ip]
|
||||||
|
|
||||||
|
/* keep stack aligned as required by eabi */
|
||||||
|
sub sp,sp,#4
|
||||||
|
|
||||||
/* Push stack limit */
|
/* Push stack limit */
|
||||||
str a3, [sp, #-4]!
|
str a3, [sp, #-4]!
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user