GNU nano 2.0.7 File: hello.asm
section .data
hello: db 'Hello World!', 10
helloLen: equ $-hello
section .bss
section .text
global _start
_start:
mov eax, 4
mov ebx, 1
mov ecx, hello
mov edx, helloLen
int 80h
mov eax, 1
mov ebx, 0
int 80h
why does this compile in nasm but not in gas? using linux btw
and when i add rubbish inside the code the code compiles just fine as well, what gives?