.section .rodata | |
helloworld: | |
.string "Hello world\n" | |
.text | |
sc: | |
movl %esp, %ecx | |
sysenter | |
.global _start | |
_start: | |
call start | |
start: | |
popl %eax | |
pushl $12 | |
addl $(helloworld - start), %eax | |
pushl %eax | |
pushl $0 | |
pushl $0 | |
pushl $1 | |
movl $140, %eax | |
call sc | |
addl $20, %esp | |
pushl $0 | |
movl $54, %eax | |
call sc |