printf関数を使った簡単なアセンブルプログラムを書いてみました。私はそれをコンパイルしnasm -f elf 64、を使用してリンクしgccます。走った後、私は見segmentation faultます。なにが問題ですか?
[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