mirror of
git://git.musl-libc.org/musl
synced 2024-12-16 03:35:06 +00:00
fix bug computing argc when invoking ld-musl-mips.so.1 progname ...
This commit is contained in:
parent
0780936312
commit
efe9751468
@ -34,12 +34,12 @@ _start:
|
|||||||
|
|
||||||
add $sp, $sp, 16
|
add $sp, $sp, 16
|
||||||
li $6, -1
|
li $6, -1
|
||||||
1: lw $4, ($sp)
|
lw $4, ($sp)
|
||||||
lw $5, 4($sp)
|
1: lw $5, 4($sp)
|
||||||
bne $5, $6, 2f
|
bne $5, $6, 2f
|
||||||
nop
|
nop
|
||||||
addu $sp, $sp, 4
|
addu $sp, $sp, 4
|
||||||
addu $4, $4, -4
|
addu $4, $4, -1
|
||||||
b 1b
|
b 1b
|
||||||
nop
|
nop
|
||||||
2: sw $4, ($sp)
|
2: sw $4, ($sp)
|
||||||
|
Loading…
Reference in New Issue
Block a user