- 论坛徽章:
- 0
|
1)生成.dump文件,如下:
hello.gdb: file format elf32-littlearm
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 000044f0 00000000 00000000 00008000 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .data 00000360 000044f0 000044f0 0000c4f0 2**2
CONTENTS, ALLOC, LOAD, DATA
2 .bss 00000480 00004850 00004850 0000c850 2**4
ALLOC
3 .debug_aranges 000000c0 00000000 00000000 0000c850 2**0
CONTENTS, READONLY, DEBUGGING
4 .debug_pubnames 000002d7 000000c0 000000c0 0000c910 2**0
CONTENTS, READONLY, DEBUGGING
5 .debug_info 00000ec5 00000397 00000397 0000cbe7 2**0
CONTENTS, READONLY, DEBUGGING
6 .debug_abbrev 000001a2 0000125c 0000125c 0000daac 2**0
CONTENTS, READONLY, DEBUGGING
7 .debug_line 00000000 000013fe 000013fe 0000dc4e 2**0
CONTENTS, READONLY, DEBUGGING
SYMBOL TABLE:
00000000 l d .text 00000000
000044f0 l d .data 00000000
00004850 l d .bss 00000000
00000000 l d .debug_aranges 00000000
000000c0 l d .debug_pubnames 00000000
00000397 l d .debug_info 00000000
0000125c l d .debug_abbrev 00000000
000013fe l d .debug_line 00000000
00000000 l d *ABS* 00000000
......... ........
在Sections中我不知道Algn,File off,VMA和LMA是什么意思,虽然知道MA就是MEMORY ADDRESS.
在Sections中有.debug_arrangs,.debug_pubnames,.debug_info,.debug_abbrev,.debug_line
不知是什么意思?在网上我又找到.glue_7t,.glue_7,.stack,又是问题.在SYMBOL TABLE中,第二
项选项有l/g/w ,第三项选项有d/df/O/F,不知是什么意思.
2)在hello目录下生成新的文件,其中有一个为hello.err_ld.通过察看,这个文件是由
如下形式反复的语句组成.形式为:
ABS Vma=0x0,value=0x0,address=0x30,sym_addr=0x0,rs=0x0,opcode=0x4,HL=0x4,sym-addr=0x44f0
reloc@30=0x30
reloc[0]=0x30
这种形式是什么意思.ABS ,Vma,value,address,sym_addr,rs,opcode,HL=,sym-addr,reloc@30,reloc[0]=0x30
各代表什么意思?本身这条语句代表什么意思?*.err_ld是什么文件,用来干什么? |
|