projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prevent passing PT_INTERP name to dlopen from double-loading libc
[musl]
/
src
/
ldso
/
powerpc
/
start.s
diff --git
a/src/ldso/powerpc/start.s
b/src/ldso/powerpc/start.s
index
08b5979
..
6c499e8
100644
(file)
--- a/
src/ldso/powerpc/start.s
+++ b/
src/ldso/powerpc/start.s
@@
-16,6
+16,14
@@
_start:
bl __dynlink
addi 1, 1, 16
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
mtlr 3
li 3, 0
blr