Can anyone please tell me what am I doing wrong? I am running ubuntu sub operating system, is it something to do with that? Here's my code:
section .data
section .text
global _start
_start:
mov eax, 1
mov ebx, 0
int 80h
And here is how I assemble it:
nasm -f elf64 -o exit.o exit.s
ld exit.o -o exit
It shows:
Segmentation fault (core dumped)