我尝试用printf函数编写简单的汇编程序.我编译它nasm -f elf 64并使用
gcc链接.运行后我看到分段故障.怎么了?
[Bits 32] extern printf global main section .data hello: db "Hello",0xa,0 section .text main: push hello call [printf] add esp,4 mov eax,1 mov ebx,0 int 80h