ELF与a.out
2017-5-30
Linux之前使用a.out格式,后来直到现在使用elf格式。为什么转换,历史原因是什么呢?下面是一些国外的评论。Deepankar Dubey:ELF (Executable and Linking Format) is a binary format originally developed b
静态库的格式
2017-6-14
静态库只是一些目标文件的打包,没有对目标文件内容进行任何修改。The ar format has never been standardized; modern archives are based on a common format with two known variants, BSD an
ELF:标准与文件格式
2017-6-15
1 规范 SpecificationsELF (Executable and Linking Format) 最早由Unix系统实验室(USL)作为ABI (Application Binaray Interface) 的一部分发布。TIS (Tool Interface Standard) 协会选
ELF:数据、字符表示法与ELF头
2017-6-15
1 数据表示法 Data representation目标文件格式支持各种8位字节、32位架构的处理器,而且打算支持更大或更小的架构。所以目标文件使用与机器无关的格式重新表示(represent)了一些控制数据。32位数据类型NameSizeAlignmentPurposeElf32_Addr44U
ELF:Sections
2017-6-17
1 Sectionssections包含所有的信息,除了ELF头、program header table和section header table。sections满足几个条件: 1. 每个section都有唯一的一个section header,但是section header可能
ELF:String table、Symbol table与Relocation
2017-6-17
前面介绍了section header table,通过这个表可以找到所有section的内容。这些内容根据section type和section name解释。同一个section type可能有多个section,因此section name也是section的识别之一,一些special s
ELF:Segments
2017-6-17
1 Segments段并不是目标文件的新内容,段只是程序加载角度的内容块,一个段可以包含多个section,也可以包含头。段通过Program header table索引。通常,可执行文件和共享库目标文件才具有段。2 Program header tableProgram header table
ELF:Intel architecture
2017-12-30
本文描述和Intel架构相关,但是和操作系统无关的信息。既和Intel架构相关又和操作系统相关的部分在后续的章节讲述。1 ELF headere_ident[EI_CLASS]的值为ELFCLASS32,e_ident[EI_DATA]的值为ELFDATA2LSB。e_machine的值为EM_38
ELF:Operating System Specific (SVR4)
2017-12-31
1 Section本章节描述SVR4的section规范。1.1 Section typeSVR4规定了下述类型的Section:SHT_SYMTAB,SHT_DYNSYM。存储符号表,当前一个目标文件每种类型只能有一个section,但是这个限制在将来可能放宽。典型地,SHT_SYMTAB提供静态
ELF:Intel architecture and System V Release 4 Dependencies
2017-12-31
SectionsSpecial sections.got 包含global offset tables.plt 包含procedure linkage tableNameTypeAttributes.gotSHT_PROGBITSSHF_ALLOC+SHF_WRITE.pltSHT_PROGBITS
Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.