SYM File
Structure
- Programme header
- Section
- Symbol table
Programme header
- An executable or shared object file's program header table is an array of structures.
- each describing a segment or other information the system needs to prepare the program for execution.
- An object file segment contains one or more sections.
- Program headers are meaningful only for executable and shared object files.
- A file specifies its own program header size with the ELF header's e_phentsize and e_phnum members.
- typedef struct {
- Elf32_Word p_type;//tells what kind of segment this array element describes or how to interpret the array element's information.
- Elf32_Off p_offset;//gives the offset from the beginning of the file at which the first byte of the segment resides.
- Elf32_Addr p_vaddr;//gives the virtual address at which the first byte of the segment resides in memory.
- Elf32_Addr p_paddr; //On systems for which physical addressing is relevant, this member is reserved for the segment's physical address.
- Elf32_Word p_filesz; //This member gives the number of bytes in the file image of the segment; it may be zero.
- Elf32_Word p_memsz; //This member gives the number of bytes in the memory image of the segment; it may be zero.
- Elf32_Word p_flags; //This member gives flags relevant to the segment.
- Elf32_Word p_align; //This member gives the value to which the segments are aligned in memory and in the file.
- } Elf32_Phdr;
- p_type
- Name Value meaning
- PT_NULL 0 The array element is unused
- PT_LOAD 1 The array element specifies a loadable segment
- PT_DYNAMIC 2 The array element specifies dynamic linking information
- PT_INTERP 3 The array element specifies the location and size of a null- terminated path name to invoke as an interpreter
- PT_NOTE 4 The array element specifies the location and size of auxiliary information
- PT_SHLIB 5 This segment type is reserved, has unspecified semantics
- PT_PHDR 6 specifies the location and size of the program header table itself
- PT_LOPROC 0x70000000 reserved for processor-specific semantics
- PT_HIPROC 0x7fffffff
SYM File的更多相关文章
- Android dump .so 文件crash log
众所周知,在android系统上,有时候我们遇到so文件的crash仅仅能打log,可是非常多时候并不知道crash在什么地方,幸运的是crash后,一般能够产生一个.dmp文件. 我们能够依据这个文 ...
- vxworks固件分析
前言 vxworks 的固件分析流程 1.用binwalk查看固件基本信息并解压固件 2.获取固件相关信息, cpu架构,大小端 3.确定固件的加载地址 4.用IDA加载固件,并修复符号表 5. 分析 ...
- Schematic - "DesignEntry 30 ERROR Instance referencing symbol is out of date"
Schematic - "DesignEntry 30 ERROR Instance referencing symbol is out of date" Descript ...
- objcopy使用
objcopy - copy and translate object files:用于二进制文件的拷贝和翻译(转化) objcopy的man文件如下所示: objcopy [-F bfdname|- ...
- make file教程(转)
最近在学习Linux下的C编程,买了一本叫<Linux环境下的C编程指南>读到makefile就越看越迷糊,可能是我的理解能不行. 于是google到了以下这篇文章.通俗易懂.然后把它贴出 ...
- Keil AGDI Header File
#ifndef __AGDI__INCED___ #define __AGDI__INCED___ //---Revision History: --------------------------- ...
- windbg Symbol file path
SOS是一个调试器扩展,用于调试.NET应用程序.它提供了一组非常丰富的命令,这些命令使开发人员可以对CLR进行深入分析,并且有助于找出应用程序中各种复杂错误的原因. 由于SOS能够提供CLR内部 ...
- WARNING: Can not get binary dependencies for file...
环境: window7 64bit python 3.5 pyinstaller 3.2 用pyinstaller 将python文件打包成exe文件的过程中,出现了如下的错误 C:\Users\ca ...
- ERROR: Symbol file could not be found 寒江孤钓<<windows 内核安全编程>> 学习笔记
手动下载了Symbols,设置好了Symbols File Path,串口连接上了以后,出现ERROR: Symbol file could not be found, 并且会一直不停的出现windb ...
随机推荐
- Shell编程(2)
1 (1) (2) (3) 一.二都是显示数组所有元素,*是作为一个长字符串输出,@是作为数组一个一个输出 三.四都是输出数组的长度 五.六都是输出数组中第一个元素的长度 (4) unset是name ...
- two pointers
two pointers是算法编程中一种非常重要的思想,但是很少会有教材单独拿出来将,其中一个原因是它更倾向于是一种编程技巧,而长得不太像是一个是“算法”的模样.two pointers的思想十分简介 ...
- mysql中文、英文别名排序问题,order by 关键字详解
order by 关键字详解: SELECT intcode AS 商品编码, product_title AS 名称, retailprice AS 零售价, purchaseprice AS ...
- PSP耗时
- 如何让浏览器直接输出HTML代码而不解析
方法一: 将HTML代码嵌入到<script type='text/html' style='display:block'></scipt>中 <script type= ...
- light sdk
//请求ajax var request = function (url,method,params,cb) { var d = ajax({ url:url, type:method, data:p ...
- excel 格式化姓名
在做excel时,难免会遇到输入姓名对齐这种情况,如果数据少时我们可以手动敲空格来进行对齐,但数据量大时,手动调整就不是好办法了. 此时我们可以通过excel自带公式对 ...
- DashBoard创建各种表(二)
添加范围过滤器 “ 范围过滤器”允许您将过滤应用于其他仪表板项.此项目显示带有选择拇指的图表,允许您过滤掉沿参数轴显示的值. 如图,可以根据选择不同的CategorySales范围显示图表1的内容了. ...
- windows云服务器发布项目
1.tomcat安装版安装,把server.xml中”localhost“改为自己的域名.启动tomcat的时候就通过外网访问到云服务器的tomcat主页. 2.上述实现的前提是已经对域名进行解析:域 ...
- 不同组的id列表的汇总对比
需求: 三个不同的dfs中存在不同的多个节点id,现在需要求出不同的dfs之间的节点对应关系,比如,哪些节点在某一个dfs,但是不在另一个dfs中 思路: 一. 如果是单纯计算dfs中节点数量,则可以 ...