linux中,查看符号表的方法
来源:互联网 发布:票房数据库 编辑:程序博客网 时间:2024/04/29 04:15
查看符号表,利用nm:利用gcc编译链接生成的输出文件a.out,可以通过如下指令查看:
$gcc -o a.out main.c
$nm a.out
查看ELF信息,利用readelf:
//读取ELF header
$readelf -Wh a.out
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: Intel 80386
Version: 0x1
Entry point address: 0x8048320
Start of program headers: 52 (bytes into file)
Start of section headers: 4436 (bytes into file)
Flags: 0x0
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 9
Size of section headers: 40 (bytes)
Number of section headers: 30
Section header string table index: 27
//读取section header
$readelf -Ws a.out
//读取program header
$readelf -Wl a.out
利用objdump -s,查看elf section内容
$objdump -s a.out
利用gdb,也可以查看符号表
详见gdb手册。https://sourceware.org/gdb/current/onlinedocs/gdb/Symbols.html#Symbols
- linux中,查看符号表的方法
- linux/mac下查看符号表方法【待补充】
- linux中对象文件的符号表symbols查看工具nm简介
- 反汇编uimage和查看符号表的方法
- 反汇编uimage和查看符号表的方法
- linux中查看日志的方法介绍
- linux中查看mysql版本的方法
- linux 查看 *.a *.so 符号表(zt)
- linux 查看 *.a *.so 符号表(zt)
- linux 查看 *.a *.so 符号表(zt)
- 查看程序符号表的几个命令
- linux查看程序所依赖的共享库和程序的符号表
- 在linux中查看线程数的三种方法
- linux系统中打开文件数量的查看方法
- Linux系统中打开文件数量的查看方法
- 在linux中查看线程数的三种方法
- 在linux中查看线程数的三种方法
- Linux系统中打开文件数量的查看方法
- Google高级技巧—google Hack★★★★
- C++11学习笔记(2) —— decltype
- linux下IPTABLES配置详解
- 什么时候使用引用?什么时候使用指针?什么时候安置传递?
- 创建动态添加上传文件页面
- linux中,查看符号表的方法
- Java基础(十五)-----GUI基础①
- 为什么你应该从现在开始写博客
- Netty初步之Hello World
- 菜鸟学SSH(九)——Hibernate——Session之save()方法
- C++11学习笔记(3)—— enum
- lambda小应用(Python)
- 最小生成树(MST) Kruskal 算法
- 题目1161:Repeater