blob: e8f04056046c2d92e4efa70ae63a62071583b3e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
.global _start
_start:
# environment adress was passed on stack
pop %eax
mov %eax, environ
# call main (argc and argv are on the stack)
call main
# push exit code and pass to _exit syscall
push %eax
call _exit
# this should never be reached!
.wait:
hlt
jmp .wait
|