- 论坛徽章:
- 0
|
我在做u-boot-v2(barebox)移植的时候,想通过axd做源码调试。
这样做的前提是要在Linux环境下(我用的ubuntu)生成uboot.bin和uboot文件。
其中uboot文件要包含调试信息。
我查看elf文件信息的结果如下:
root@vm:/samba/uboot2-rc10# readelf -S ./uboot
There are 12 section headers, starting at offset 0x3049c:
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al
[ 0] NULL 00000000 000000 000000 00 0 0 0
[ 1] .text PROGBITS a7f00000 008000 01e3a8 00 AX 0 0 32
[ 2] .rodata PROGBITS a7f1e3a8 0263a8 006038 00 A 0 0 4
[ 3] .data PROGBITS a7f243e0 02c3e0 0020a8 00 WA 0 0 4
[ 4] .u_boot_cmd PROGBITS a7f26488 02e488 000720 00 A 0 0 4
[ 5] .u_boot_initcalls PROGBITS a7f26ba8 02eba8 000068 00 WA 0 0 4
[ 6] .bss NOBITS a7f26c10 02ec10 00790c 00 WA 0 0 4
[ 7] .comment PROGBITS 00000000 02ec10 001810 00 0 0 1
[ 8] .ARM.attributes ARM_ATTRIBUTES 00000000 030420 000010 00 0 0 1
[ 9] .shstrtab STRTAB 00000000 030430 00006b 00 0 0 1
[10] .symtab SYMTAB 00000000 03067c 009e40 10 11 2100 4
[11] .strtab STRTAB 00000000 03a4bc 003d4a 00 0 0 1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings)
I (info), L (link order), G (group), x (unknown)
O (extra OS processing required) o (OS specific), p (processor specific)
而在u-boot-v2(barebox)中没有config.mk文件,我该怎么在编译时增加elf文件中的调试信息?
谢谢!! |
|