> > ld -s -o heworl heworl.o > ld:i386 architecture of input file *.o is incompatible with i386:x86-64 output You told nasm to create a 32-bit .o file. Tell nasm to create a 64-bit .o file instead. Use "-f elf64" instead of "-f elf32". The command "nasm -hf" will display all the valid output formats that nasm supports. b -- To unsubscribe from this list: send the line "unsubscribe linux-assembly" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
- References:
- simple hello.asm (NASM) not compile in x64, plz help
- From: eric lin
- simple hello.asm (NASM) not compile in x64, plz help
- Prev by Date: simple hello.asm (NASM) not compile in x64, plz help
- Next by Date: simple hello.asm (NASM) not compile in x64, plz help
- Previous by thread: simple hello.asm (NASM) not compile in x64, plz help
- Next by thread: RE: simple hello.asm (NASM) not compile in x64, plz help
- Index(es):