Advertisement

lef文件的系统分析与优化

阅读量:

首先对名词进行解析:ELF作为Executable and Linkable Format(EAF),是一种可执行文件格式。

与ELF文件相对应的是Bin files Bin files are of type directly loaded into memory for execution Using UBOOT can directly copy the Bin file to its runtime address (Note that it must be copied to the runtime address) At this point a Go command will be able to execute the Bin file that was just copied.

为了实现 elf 文件的加载需求,系统必须通过特定机制完成这一操作。因为 elf 文件中已预存了程序所需的加载地址信息,因此可以在内存中指定一个非 bin 区域的位置来直接装载该 elf 文件。其中 bin 区域指的就是在解析 elf 后生成的二进制文件内容。

熟悉 elf 文件的布局可以帮助您更好地理解其功能和用途。通过读取Elf头文件的信息来分析程序结构时,默认情况下会加载可执行文件以及其依赖项。

复制代码
 jiefang@jiefang-virtual-machine:/ho

全部评论 (0)

还没有任何评论哟~