2.2 Program Header 2.3 Section Header 2.4 Section 3 总结 4 参考文献 ELF(Executable and Linkable Format)文件是一种标准文件格式,用于在类Unix操作系统中表示可执行文件、可重定位文件、共享库和核心转储。 1 ELF文件的种类 ELF文件主要有以下几种类型: 可重定位文件(Relocat
e_entry可执行程序入口点地址。 e_phoffProgram Header Offset,程序头部表索引地址,没有则为0。 e.shoffSection Header Offset,节区表索引地址,没有则为0。 e_flags“保存与文件相关的,特定于处理器的标志。”(不知道有什么用,看了几个arm都是00 00 00 05,x86都是0)。 e_ehsizeELF_Header Size,嗯..EL...
ELF 文件头(File Header):位于文件最开始,包含了整个文件的结构信息,例如是ELF 幻数,是哪种 ELF 文件,程序头表、节头表的地址等。 程序头表(Program Header Table):描述了所有段的信息 节头表(Section Header Table):描述了所有节的信息 本文不会解释结构体每个元素,而是利用 readelf 工具解读。如果需要详细到...
2. 對 dynamic loader/linker 來說,ELF 的 'section' 是通透性的(transparent),也就是在整個載入的過程裡,dynamic loader/linker 並不會知道他所載入的 'segment' 與實際的 section 有何關係。整個載入過程只讀取 program header table 所紀錄的 'segment'。 3. 也就是說,section header table 在此時期是用不...
-h--file-header Display the ELF file header -l--program-headers Display the program headers --segments An alias for --program-headers -S--section-headers Display the sections' header --sections An alias for --section-headers -g--section-groups Display the section groups ...
百度试题 题目ELF文件主要有哪几部分?? ELF HeaderProgram HeaderSection HeaderSection或Segment 相关知识点: 试题来源: 解析 Section或Segment 反馈 收藏
这意味着对于静态链接器而言,其主要处理的是 ELF 文件 Section header table 中描述的信息;而对于程序加载器而言,其主要处理的是 Program header table 中描述的信息。 elftool.c elftool.c 只干了 1 件事,就是将输入的数据流,尝试以 ELF 文件的格式进行校验。若校验通过,则会创建 elf_reloc_t 描述符,同时...
ELF文件头内的程序头表(ProgramHeaderTable)是控制程序加载和映射的关键部分。在32位系统中,程序头表的字段一般会包含一些标志、大小、偏移量等信息,指示程序如何加载到内存。而在64位系统中由于更大的地址空间和更强大的处理能力程序头表的映射方式更加灵活、精细。这不仅优化了内存的利用率。也致使程序加载的效率...
...(data)中 BSS 段比较特殊,未初始化的全局变量和静态变量都会放置到 bss 段中,但因为这些变量的值都是 0,没有必要再开辟空间存储,所以在可执行文件中 bss 段是不占用空间的。...但是 BSS 段的大小、起始地址、各个变量的地址信息都会分别保存在 section header table 和符号表 symtab 中,当程序运行的时候...
back to ET_NONE. The reason ecfs-core files are of type ET_NONE is because it allows the objdump utility to utilize the section headers. If objdump sees that a file is of type ET_CORE it will assume it has no section headers and use the program headers which aren't nearly as useful...