X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=crt%2Fmips%2Fcrt1.s;h=093d7d562afe7a06d723116d97ffa08235384e56;hp=bdb7c1a759288756f69621e8ac239437d7b60878;hb=bb9abdef48969671ee51f28379981a13c440d0d9;hpb=6315004f6102dca44c4ba50654a36967b8b9c2a6 diff --git a/crt/mips/crt1.s b/crt/mips/crt1.s index bdb7c1a7..093d7d56 100644 --- a/crt/mips/crt1.s +++ b/crt/mips/crt1.s @@ -14,6 +14,7 @@ _start: lw $5, ($sp) # Get argc... addu $6, $sp, 4 # and argv ... lw $7, %call16(_init)($gp) # and _init() ... + and $sp, $sp, -8 # Align the stack pointer to 8 bytes addi $sp, $sp, -4*6 # Leave space for arguments 0..3, arg4, and arg5. lw $12, %call16(_fini)($gp) # and _fini() ... sw $12, 4*4($sp) # Save arg4.