From d280a62e1c10e4f24b154b5c3b59c0c1b92f739f Mon Sep 17 00:00:00 2001 From: dfr Date: Tue, 21 Aug 2001 16:53:23 +0000 Subject: Make sure stack is aligned to 16 bytes. --- lib/csu/ia64/crt1.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/csu') 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"); -- cgit v1.1