调用外部功能核心已转储

时间:2019-05-21 14:40:17

标签: linux assembly x86-64 nasm

当调用外部函数“ printf”,“ puts”时,我得到了一个核心转储信息。

我将Windows子系统用于Linux,Ubuntu 18.04 LTS。 链接器为/lib64/ld-linux-x86-64.so.2

section .data
    fmt db "123",10,0
section .text
     global _start
     extern puts
     extern exit
 _start:
     ;push 2
     push fmt
     call puts
     call EXIT

 EXIT:
     push 0
     call exit

0 个答案:

没有答案