Linux内核符号及地址

1. /proc/kallsyms列出了linux内核导出的所有符号及对应的地址。

基本格式是: 逻辑地址 标识 符号(内核导出的符号),如00100000 A phys_startup_32。

一些典型的内容如下所示:

  • c0100000 A _text 注:表示内核代码第一个字节的地址
  • c02fa1af A _etext 注:内核代码结束的位置,之后为内核初始化的数据
  • c03e1b40 A _edata 注:内核初始化数据结束,之后为未初始化数据
  • c043a068 A _end 注:内核未初始化数据结束

标识分为A、T、t、W、R、D等,分别意义如下:
标识说明: 小写字母表示局部; 大写字母表示全局(外部).

  • A
    The symbol’s value is absolute, and will not be changed by further linking.

  • B
    The symbol is in the uninitialized data section (known as BSS).

  • C
    The symbol is common. Common symbols are uninitialized data. When linking, multiple common symbols may appear with the same name. If the symbol is defined anywhere, the common symbols are treated as undefined references. For more details on common symbols, see the d

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值