首页 > 编程知识 正文

vb readfile api函数,s32怎么创建elf文件

时间:2023-05-04 12:37:18 阅读:18730 作者:1253

目录

readelf概述

使用readelf命令

readelf概述

常见文件,包括ELF格式的文件,如readelf是Linux下的分析ELF文件的命令,这个命令在分析ELF文件格式时非常有用Linux上的可执行文件、动态库*.so和静态库*.a。

什么是PS:elf文件?

系统中的目标文件按特定的目标文件格式组织,每个系统的目标文件格式都不同。

来自贝尔实验室的第一个Unix系统使用a.out格式。 即使在今天,文件仍被称为a.out文件。 在Windows上,使用可移植执行(PE )格式。 MacOS- X使用Mach-O格式。 现代x86-64Linux和Unix系统都使用可兼容链接格式(elf )。

ELF格式的文件在Linux系统下有. axf、 bin、 ELF、 o、 prx、 puff、 ko、 mod、 so等

readelf命令使用说明usage:readelfoption(s ) elf-file(s ) s ) )。 displayinformationaboutthecontentsofelfformatfilesoptionsare :-- allequivalentto :-h-l-s-s-r-d-v-a////l---program-- headersdisplaytheprogramheaders---segmentsanaliasfor---program-headers/* 程序头(无心樱桃信息)数据(如果有) )的- s---- section-headersdisplaythesections ' header---- sectionsanaliasfors - g-- section-groupsdisplaythesectiongroups/*节组信息(如果有数据)/--t-- section-detailsdisplaythesectiondetaiondetaiion 显示- e-- headersequivalentto :-h-l-s/*显示所有标头信息,(h-l-s*//- s---symsdisplaythesymboltable---symbolsanaliasfor---syms---dyn-symsdisplaythedynamicsymboltable ) *//-- n-- notesdisplaythecorenotes (if present )/*显示note段(内核注释)的信息。 *//-r-- relocsdisplaytherelocs/*显示可重定位段的信息*//-- u--显示未注册的未注册段信息当前仅支持IA64 ELF的unwind分段信息*//--显示动态分段信息(/- v-- version--显示infodisplaytheversionsections (if present )/*版本段的信息(//-- a---arch-specificdisplayayayars ) - c-- archive-indexdisplaythesymbol/fileindexinanarchive/*显示符号时,表示bucket list长度的条形图*//使用--d-- use-dynamicusethedynamicsectioninfowhendisplayingsymbols/*动态段的符号表显示符号,符号段*/- x-- hex 使用namedumpthecontentsofsectionnumber|nameasbytes/*不是以十六进制形式显示指定段中的内容。 number指定段表中段的索引,或者字符串指定文件中的段名称*/- p-- string-dump=number|namedumpthecontentsofsectionnumber|namedumpthecont - r-- relocated-dder namedumpthecontentsofsectionnumber|nameasrelocatedbytes/*/- z-- decompressdecompresssectionbytes or --debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames=cu_index] displaythecontentsofdwarf 2调试区段--dwarf-depth=ndonotdisplaydiesatdepthnorgreater-- dwarf-start=ndisplaydier laydieeth atthesamedepthordeeper/*/--I-- histogramdisplayhistogramofbucketlistlengths/*/- w---wideallllowoutputwitwitiow @ filereadoptionsfromfile/*/- h-- helpdisplaythisinformation显示readelf支持的命令行选项*.--v-- versiondisplaythevelf

参考:

可以使用“readelf”工具分析目标文件并学习目标文件的结构。

使用readelf命令

获取更多相关的嵌入式开发工具,可收藏系列博文,持续更新中:

【开发工具】嵌入式常用开发工具总结帖

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。