diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-05-27 16:01:44 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-05-27 16:01:44 -0400 |
commit | 5c1909a8d210cd08a776a2fd6681dbea1f0ae480 (patch) | |
tree | 3e1faad627f164047bfd41ea0b888d370b781561 /src/ldso/arm/start.s | |
parent | b94608ca10051e7911250aaa53f1435b0512018c (diff) | |
download | musl-5c1909a8d210cd08a776a2fd6681dbea1f0ae480.tar.gz musl-5c1909a8d210cd08a776a2fd6681dbea1f0ae480.tar.xz musl-5c1909a8d210cd08a776a2fd6681dbea1f0ae480.zip |
add ldd and main program loading support to dynamic linker
Diffstat (limited to 'src/ldso/arm/start.s')
-rw-r--r-- | src/ldso/arm/start.s | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ldso/arm/start.s b/src/ldso/arm/start.s index 25675782..dfa36578 100644 --- a/src/ldso/arm/start.s +++ b/src/ldso/arm/start.s @@ -4,6 +4,13 @@ _start: ldr r0,[sp] add r1,sp,#4 bl __dynlink + pop {r1} +1: sub r1,r1,#1 + pop {r2} + cmp r2,#-1 + beq 1b + add r1,r1,#1 + push {r1,r2} mov r1,r0 mov r0,#0 tst r1,#1 |