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:
authorJeff Johnston <jjohnstn@redhat.com>2005-07-19 19:14:16 +0400
committerJeff Johnston <jjohnstn@redhat.com>2005-07-19 19:14:16 +0400
commit108d7dd833dfdcf09b37708f07977a4d0250e9c2 (patch)
tree2aaac680877b53a46aadf5645e150287094a55ad /newlib/libc/sys
parentd551c8583e74ddbdfdde7d57bcee564198c64fef (diff)
2005-07-19 Paul Brook <paul@codesourcery.com>
* libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
Diffstat (limited to 'newlib/libc/sys')
-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 00a037a0d..8a8372a88 100644
--- a/newlib/libc/sys/arm/crt0.S
+++ b/newlib/libc/sys/arm/crt0.S
@@ -186,6 +186,11 @@ __change_mode:
add r3, #4
b .LC15
.LC14:
+ /* Ensure doubleword stack alignment. */
+ mov r4, sp
+ mov r5, #7
+ bic r4, r5
+ mov sp, r4
#else
add r2, sp, r0, LSL #2 /* End of args */
mov r3, sp /* Start of args */
@@ -195,6 +200,8 @@ __change_mode:
strhi r5, [r2, #-4]!
strhi r4, [r3], #4
bhi .LC13
+ /* Ensure doubleword stack alignment. */
+ bic sp, sp, #7
#endif
#endif