readelf:Linux/Unix 下的命令行工具,用于读取并显示 ELF(Executable and Linkable Format,可执行与可链接格式) 文件的信息,如文件头、节区(sections)、段(segments)、符号表、动态链接信息等;常用于调试、逆向分析与构建/链接排错。
/ˈriːd.ɛlf/
I used readelf to check whether the binary is 64-bit.
我用 readelf 检查这个二进制文件是不是 64 位的。
When the program failed to start, we ran readelf -d on the executable to inspect its dynamic dependencies and confirm which shared libraries it was trying to load.
当程序无法启动时,我们对可执行文件运行 readelf -d 来检查动态依赖关系,确认它试图加载哪些共享库。
readelf 由 read(读取) + ELF 组成,字面意思是“读取 ELF 文件”。ELF 是类 Unix 系统中常见的二进制文件格式,readelf 主要用于把其中的结构化信息“读出来并展示”。