hello world pasted by C-Keen on Mon Jul 8 22:14:46 2013
.section data s: .ascii "hello world\n" .section text .globl _start _start: movl $4, %eax movl $1, %ebx leal s, %ecx movl $11, %edx int $0x80 xorl %ebx,%ebx xorl %eax,%eax incl %eax int $0x80
small typo correction pasted by C-Keen on Tue Jul 9 09:48:52 2013
.section .data s: .ascii "hello world\n" .section .text .globl _start _start: movl $4, %eax movl $1, %ebx leal s, %ecx movl $11, %edx int $0x80 xorl %ebx,%ebx xorl %eax,%eax incl %eax int $0x80
maybe working ident section pasted by C-Keen on Tue Jul 9 10:47:35 2013
.section ".note.openbsd.ident", "a" .int 8 .int 4 .int 0x01 .ascii "OpenBSD\0" .int 201305 ;; from OPENBSD_VERSION <sys/param.h> .section .data s: .ascii "hello world\n" .section .text .globl _start _start: movl $4, %eax movl $1, %ebx leal s, %ecx movl $12, %edx int $0x80 xorl %ebx,%ebx xorl %eax,%eax incl %eax int $0x80
working now that I use the correct calling convention added by C-Keen on Tue Jul 9 11:02:58 2013
.section ".note.openbsd.ident", "a" .int 8 .int 4 .int 0x01 .ascii "OpenBSD\0" .int 201305 .section .data s: .ascii "hello world\n\0" .section .text .globl _start _start: pushl $12 pushl $s pushl $1 xor %eax,%eax pushl %eax mov $4, %eax int $0x80 xorl %eax,%eax pushl %eax pushl %eax incl %eax int $0x80