Compile the example using the following under linux (RH 6.1): nasm -f elf hello.asm ld -o hello hello.o