硬汉嵌入式论坛

 找回密码
 立即注册
查看: 810|回复: 3
收起左侧

[其它] ELF文件section含义

[复制链接]

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
107759
QQ
发表于 2023-2-1 01:35:11 | 显示全部楼层 |阅读模式

说明:

[C] 纯文本查看 复制代码
.debug_abbrev Abbreviations used in the .debug_info section 

.debug_aranges A mapping between memory address and compilation  

.debug_frame Call Frame Information  

.debug_info The core DWARF data containing DIEs  

.debug_line Line Number Program  

.debug_loc Location descriptions 

.debug_macinfo Macro descriptions  

.debug_pubnames A lookup table for global objects and functions 
 
.debug_pubtypes A lookup table for global types 

.debug_ranges Address ranges referenced by DIEs  

.debug_str String table used by .debug_info 

.debug_types Type descriptions


示例:

image.png
回复

使用道具 举报

1

主题

2

回帖

5

积分

新手上路

积分
5
发表于 2023-3-25 09:39:31 | 显示全部楼层
就不能带个翻译??
debug_abbrev .debug_info部分使用的缩写
.debug_aranges内存地址和编译之间的映射
.debug_frame调用帧信息



.debug_info包含die的核心DWARF数据

.debug_line行号程序

.debug_loc位置描述

.debug_macinfo宏描述

.debug_pubnames全局对象和函数的查找表

.debug_pubtypes全局类型查找表

.debug_ranges die引用的地址范围

.debug_str .debug_info使用的字符串表

.debug_types类型描述。debug_abbrev .debug_info部分使用的缩写

.debug_aranges内存地址和编译之间的映射

.debug_frame调用帧信息

.debug_info包含die的核心DWARF数据

.debug_line行号程序

.debug_loc位置描述

.debug_macinfo宏描述

.debug_pubnames全局对象和函数的查找表

.debug_pubtypes全局类型查找表

.debug_ranges die引用的地址范围

.debug_str .debug_info使用的字符串表

.debug_types类型描述
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
107759
QQ
 楼主| 发表于 2023-3-25 09:46:22 | 显示全部楼层
LinXiaoMing123 发表于 2023-3-25 09:39
就不能带个翻译??
debug_abbrev .debug_info部分使用的缩写
.debug_aranges内存地址和编译之间的映射

浏览器鼠标右击有惊喜
回复

使用道具 举报

13

主题

196

回帖

235

积分

高级会员

积分
235
发表于 2023-3-25 10:14:28 | 显示全部楼层
目前解析DWARF文件有两个库,一个是libdwarf,一个是libelfin,目前第一个我还没在windows上编译成功。。。第二个早就不更新了。。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-6-13 06:05 , Processed in 0.184173 second(s), 28 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表