This is the command I use:
nasm -f elf file.s
This creates an object file called file.o. I already tried using the -o option. It still creates an object file, but with a different filename.
I tried converting the object file to an executable like this:
nasm -f elf file.o -o prog
It produces this error message:
first.o:1: error: label or instruction expected at start of line
This is the error message when I try to run the object file:
bash: ./first: cannot execute binary file
I hope this is enough information.


Sign In
Create Account


Back to top









