Usermode/ld-acess - Fixed crash when arguments are passed to user apps
authorJohn Hodge <[email protected]>
Wed, 19 Oct 2011 04:22:58 +0000 (12:22 +0800)
committerJohn Hodge <[email protected]>
Wed, 19 Oct 2011 04:22:58 +0000 (12:22 +0800)
Usermode/Libraries/ld-acess.so_src/arch/x86.asm.h

index 4de2527..2d2c36a 100644 (file)
@@ -14,12 +14,8 @@ _errno:      dw      0
 [extern SoMain]
 _start:
        call SoMain
-
-       add esp, 4
-       call eax
-
-       push eax
-       call _exit
+       add esp, 4      ; // Base address
+       jmp eax
 
 ; DEST
 ; SRC

UCC git Repository :: git.ucc.asn.au