$file as1 as1: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped
$file /bin/ls /bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped
how do i run the binary?
Code:
SECTION .data
msg1 db "HELLO WORLD !!!",0ah ;msg to be print
msg1len equ $-msg1
SECTION .bss
SECTION .text
GLOBAL _start
_start:
mov rax,1 ;system read call
mov rdi,1
mov rsi,msg1
mov rdx,msg1len
syscall
mov eax,60 ;system end call
mov edi,0
syscall