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/i386 | |
parent | b94608ca10051e7911250aaa53f1435b0512018c (diff) | |
download | musl-5c1909a8d210cd08a776a2fd6681dbea1f0ae480.tar.gz |
add ldd and main program loading support to dynamic linker
Diffstat (limited to 'src/ldso/i386')
-rw-r--r-- | src/ldso/i386/start.s | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ldso/i386/start.s b/src/ldso/i386/start.s index f6d49291..b16f8af5 100644 --- a/src/ldso/i386/start.s +++ b/src/ldso/i386/start.s @@ -11,6 +11,12 @@ _start: push %edi call __dynlink mov %esi,%esp +1: dec %edi + pop %esi + cmp $-1,%esi + jz 1b + inc %edi + push %esi push %edi xor %edx,%edx jmp *%eax |