韦东山Linux嵌入式课程社区
直播中

李桂荣

8年用户 169经验值
私信 关注

编译时加了-g选项但还是有no symbol ...no line information

请问老大,编译时我加了-g选项,还是有
load
Loading section first, size 0x8f4 lma 0x0
Loading section second, size 0x2fc lma 0x8fc
Start address 0x0, load size 3056
Transfer rate: 38 KB/sec, 1528 bytes/write.
break _start
Breakpoint 1 at 0x0
continue
Breakpoint 1, 0x00000000 in _start ()
Single stepping until exit from function _start,
which has no line number information.
No symbol table is loaded.  Use the "file" command.
No symbol table is loaded.  Use the "file" command.

makefile与lds文件都在截图里了,,,这是视频的mmu实验

回帖(1)

李杨

2019-4-24 11:38:56
必须使用类似这样的链接脚本:
SECTIONS {
    . = 0x30000000;
    .text          :   { *(.text) }
    .rodata ALIGN(4) : {*(.rodata)}
    .data ALIGN(4) : { *(.data) }
    .bss ALIGN(4)  : { *(.bss)  *(COMMON) }
}
举报

更多回帖

发帖
×
20
完善资料,
赚取积分