x86_64 printf segfault after brk call
- by gmb11
While i was trying do use brk (int 0x80 with 45 in %rax) to implement a simple memory manager program in assembly and print the blocks in order, i kept getting segfault. After a while i could only reproduce the error, but have no idea why is this happening:
.section .data
helloworld:
.ascii "hello world"
.section .text
…