0

刚开始汇编编程,在用 nasm 编译后,当我用 , 打开文件时gdb ./myfile(在 ./sandbox 中找不到调试符号(它的文件名))

尝试了来自终端 objdump、nm 和所有命令的许多命令,在 ./sandbox 中找不到调试符号

ASM 代码

section .data
section .text

    global _start

_start:

    nop

; put your experiments between here

; put your experiments between here

    nop

section .bss

makefile 中的代码

sandbox: sandbox.o
    ld -m elf_i386 -s -o sandbox sandbox.o
sandbox.o: sandbox.asm
    nasm -f elf -g -F dwarf sandbox.asm -l sanbox.lst

从 gdb objdump 获取错误

(在 ./sandbox(我的文件名)中找不到调试符号)

4

0 回答 0