Why do I get a segmentation fault?
I’m using nasm -f elf64 t.asm -o t.o
ld t.o -o t
to compile on linux.
I’ve done all I can think of.
section .data:
variable_int db 1
variable_string db "yaaaa", 10
section .text:
global _start
_start:
mov rax, 1
mov rdi, 1
mov rsi, variable_string
mov rdx, 14
syscall
mov rax, 60
mov rdi, 0
syscall