Xavier Maillard
2019-11-26 06:12:43 UTC
Hello,
I am just starting to learn writing some fun progs in asm.
I just jotted down some instructions, assembled it and linked it.
Running it just segfault.
The question is: why ? :)
The program is just this:
.section .data
.section .text
.globl _start
_start:
movl $1, %eax
movl $0, %ebx
int $0x80
As you can see, it just does *nothing*
Assembled it using: as
Linked it with ld
This is running on a WSL Debian system (should matter I guess)
Any pointer on what's wrong with this ?
Thanks.
N.B: I am just an amateur and I do not plan writing serious things atm, just having fun :)
I am just starting to learn writing some fun progs in asm.
I just jotted down some instructions, assembled it and linked it.
Running it just segfault.
The question is: why ? :)
The program is just this:
.section .data
.section .text
.globl _start
_start:
movl $1, %eax
movl $0, %ebx
int $0x80
As you can see, it just does *nothing*
Assembled it using: as
Linked it with ld
This is running on a WSL Debian system (should matter I guess)
Any pointer on what's wrong with this ?
Thanks.
N.B: I am just an amateur and I do not plan writing serious things atm, just having fun :)
--
- xma
GPG: BA4909B7 8F04DE1B
- xma
GPG: BA4909B7 8F04DE1B