I'm trying to compile this for Linux Arch x64, I'm trying:
section .text
global _start
_start:
mov edx, len
mov ecx, msg
mov ebx, 1
mov eax, 4
int 0x80
mov eax, 1
int 0x80
section .data
msg db 'hi123', 0xa
len equ $ - msg
And
$ nasm -f elf test1.asm
$ ld -s -o test1 test1.o
But an error:
/usr/bin/ld: i386 architecture of input file `test1.o' is incompatible with i386:x86-64 output