I am trying to run a simple assembly code who print hello world
global _start
section .text
_start:
;printing hello world
mov rax,1
mov rdi,1
mov rsi,texta
mov rdx,11
syscall
;exiting
mov rax,60
mov rdi,1
syscall
section .data
texta: db 'Hello world'
I assembled it by nasm
root@localhost:~# nasm -f elf64 do.asm -o do.o
But when I try to compile/run it , it show error
root@localhost:~# ld do.o -o do
ld: do.o: Relocations in
generic ELF (EM: 62)
ld: do.o: error adding
symbols: file in wrong format
Any way to solve it I am running it in Ubuntu-in-termux
Thanks in advance
Please solve it