fix bug computing argc when invoking ld-musl-mips.so.1 progname ...
authorRich Felker <dalias@aerifal.cx>
Sat, 18 Aug 2012 00:02:37 +0000 (20:02 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 18 Aug 2012 00:02:37 +0000 (20:02 -0400)
src/ldso/mips/start.s

index d060dbc904e3ba866454997ad7f568cb61dceb36..2e985294ceac60c4a65b4e2f7bb4b539e900c3b1 100644 (file)
@@ -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)