From efe9751468aae9eefd2f43781ae6d46170d97512 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 17 Aug 2012 20:02:37 -0400 Subject: [PATCH] fix bug computing argc when invoking ld-musl-mips.so.1 progname ... --- src/ldso/mips/start.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ldso/mips/start.s b/src/ldso/mips/start.s index d060dbc9..2e985294 100644 --- a/src/ldso/mips/start.s +++ b/src/ldso/mips/start.s @@ -34,12 +34,12 @@ _start: add $sp, $sp, 16 li $6, -1 -1: lw $4, ($sp) - lw $5, 4($sp) + lw $4, ($sp) +1: lw $5, 4($sp) bne $5, $6, 2f nop addu $sp, $sp, 4 - addu $4, $4, -4 + addu $4, $4, -1 b 1b nop 2: sw $4, ($sp) -- 2.25.1