aboutsummaryrefslogtreecommitdiff
path: root/src/ldso/mips
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-08-17 20:02:37 -0400
committerRich Felker <dalias@aerifal.cx>2012-08-17 20:02:37 -0400
commitefe9751468aae9eefd2f43781ae6d46170d97512 (patch)
tree5a2c96edd2a98b9806d080d4d661a5f880e7f584 /src/ldso/mips
parent07809363127dec2e4e9a421219a5eddf05b61592 (diff)
downloadmusl-efe9751468aae9eefd2f43781ae6d46170d97512.zip
musl-efe9751468aae9eefd2f43781ae6d46170d97512.tar.gz
musl-efe9751468aae9eefd2f43781ae6d46170d97512.tar.bz2
fix bug computing argc when invoking ld-musl-mips.so.1 progname ...
Diffstat (limited to 'src/ldso/mips')
-rw-r--r--src/ldso/mips/start.s6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ldso/mips/start.s b/src/ldso/mips/start.s
index d060dbc..2e98529 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)