mirror of
git://git.musl-libc.org/musl
synced 2024-12-16 03:35:06 +00:00
arg-skipping code for powerpc dynamic linker
this allows using the dynamic linker as a command to load programs.
This commit is contained in:
parent
a4db94ab78
commit
bb9abdef48
@ -16,6 +16,14 @@ _start:
|
||||
bl __dynlink
|
||||
addi 1, 1, 16
|
||||
|
||||
lwz 4, 0(1)
|
||||
1: addi 4, 4, -1
|
||||
lwzu 5, 4(1)
|
||||
cmpwi 5, -1
|
||||
beq- 1b
|
||||
addi 4, 4, 1
|
||||
stwu 4, -4(1)
|
||||
|
||||
mtlr 3
|
||||
li 3, 0
|
||||
blr
|
||||
|
Loading…
Reference in New Issue
Block a user