这个数据结构怎么分析

xyz_100 2008-12-02 03:21:07
struct exec
{
unsigned long a_info; /* Use macros N_MAGIC, etc for access */
unsigned a_text; /* length of text, in bytes */
unsigned a_data; /* length of data, in bytes */
unsigned a_bss; /* length of uninitialized data area for file, in bytes */
unsigned a_syms; /* length of symbol table data in file, in bytes */
unsigned a_entry; /* start address */
unsigned a_trsize; /* length of relocation info for text, in bytes */
unsigned a_drsize; /* length of relocation info for data, in bytes */
};
...全文
41 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
lnever 2008-12-31
  • 打赏
  • 举报
回复
应该是elf文件的数目结构。
帅得不敢出门 2008-12-02
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 feng_linye 的回复:]
你是说可执行文件格式里的一些数据结果吧
[/Quote]
同感.
具体代码中是如何利用的?
still_r 2008-12-02
  • 打赏
  • 举报
回复
像是Windows PE的数据结构
feng_linye 2008-12-02
  • 打赏
  • 举报
回复
你是说可执行文件格式里的一些数据结果吧
never_QL 2008-12-02
  • 打赏
  • 举报
回复
没懂LZ的意思

功能,后面有注释
结构,struct自定义结构

18,772

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 专题技术讨论区
社区管理员
  • 专题技术讨论区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧