nasm 怎么会这样呢?求高手解答
section .datachar db 'hi',0Ah
len equ $-char
section .text
global _start
_start:
call sayhi
call sayhi
push 0
mov eax,1
call .done
sayhi:
push len
push char
push 1
mov eax,4
call .done
.done:
int 80h
ret
结果显示
hi segmentation fault(core dumped)
这是什么情况啊,似乎只call sayhi 了一次,在哪出问题了?在win以同样的思路写出来没错啊
页:
[1]