linux之readelf命令

网友投稿 1332 2022-05-29

1、readelf命令解释

readelf命令用来显示一个或者多个elf格式的目标文件的信息

2、ELF文件类型

可重定位文件:用户和其他目标文件一起创建可执行文件或者共享目标文件,例如lib*.a文件。

可执行文件:用于生成进程映像,载入内存执行,例如编译好的可执行文件a.out。

共享目标文件:用于和其他共享目标文件或者可重定位文件一起生成elf目标文件或者和执行文件一起创建进程映像,例如lib*.so文件。

2、一般使用

Usage: readelf elf-file(s)

Display information about the contents of ELF format files

Options are:

-a --all Equivalent to: -h -l -S -s -r -d -V -A -I

-h --file-header Display the ELF file header

-l --program-headers Display the program headers

--segments An alias for --program-headers

linux之readelf命令

-S --section-headers Display the sections' header

--sections An alias for --section-headers

-g --section-groups Display the section groups

-t --section-details Display

Linux

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Python读入中文记得要encoding=“utf-8“
下一篇:HTTP 状态消息
相关文章