summaryrefslogtreecommitdiffstats
path: root/lib/csu
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csu')
-rw-r--r--lib/csu/ia64/crt1.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/csu/ia64/crt1.c b/lib/csu/ia64/crt1.c
index 4f59233..16efd37 100644
--- a/lib/csu/ia64/crt1.c
+++ b/lib/csu/ia64/crt1.c
@@ -65,10 +65,13 @@ __asm ("
.global _start
.proc _start
_start:
- alloc r16=ar.pfs,0,0,3,0 ;;
+ alloc r14=ar.pfs,0,0,3,0 ;;
mov out0=sp
mov out1=r14
mov out2=r15
+ mov r14=15 ;;
+ andcm sp=sp,r14 ;;
+ add sp=-16,sp
movl gp=_GLOBAL_OFFSET_TABLE_
br.call.sptk rp=_start2
.endp _start");
OpenPOWER on IntegriCloud