refactor: elf parsing utility and exec related
[lunaix-os.git] / lunaix-os / usr / uwrap.S
index 1f077228da8d889b3829a6c00b875686b98860a5..84fe24ec0183eda8dde63fbe8a4f60da8275c4c2 100644 (file)
@@ -1,17 +1,14 @@
 #define __ASM__
 #include <lunaix/syscall.h>
 
+.section .data
+    .global environ
+    environ:
+        .long 0
+
 .section .text
     .global _u_start
-    _u_start:
-        call usr_pre_init
-        jnz 1f
-
-        popl %eax
-
-        pushl (%eax)    // argc
-        pushl 4(%eax)   // argv
-        
+    _u_start:        
         xorl %eax, %eax
         call main