Skip to content

Instantly share code, notes, and snippets.

@alanduan
Created August 17, 2016 05:41
Show Gist options
  • Save alanduan/29a50bbc1ffb766c345dffcf81d0039c to your computer and use it in GitHub Desktop.
Save alanduan/29a50bbc1ffb766c345dffcf81d0039c to your computer and use it in GitHub Desktop.
; yasm -o %:r.o % -f elf32 -g stabs
; ld -m elf_i386 %:r.o -o %:r -lc --dynamic-linker /lib/ld-linux.so.2
section .text
msg db "hello world!",10,0
extern puts
extern exit
global _start
_start:
push msg
call puts
push 0
call exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment