[英]Linux Kernel Programming - Module 2 unable to get symbols exported by Module 1
[英]Linux kernel exported symbols
我想检查 Linux kernel 导出的符号列表。所以我触发命令,
# cat /proc/kallsyms
0000000000000000 D per_cpu__irq_stack_union
0000000000000000 D __per_cpu_start
0000000000004000 D per_cpu__gdt_page
0000000000005000 d per_cpu__exception_stacks
000000000000b000 d per_cpu__idt_desc
000000000000b010 d per_cpu__xen_cr0_value
000000000000b018 D per_cpu__xen_vcpu
000000000000b020 D per_cpu__xen_vcpu_info
000000000000b060 d per_cpu__mc_buffer
000000000000c570 D per_cpu__xen_mc_irq_flags
这是我得到的 output。 我的问题是,这个output中每个字段的含义是什么? 第一个字段看起来像地址,我没有得到第二个字段的任何参考。 谁能向我解释第二个字段中值 D、d、t、T、s 的含义?
第二列中的字符与nm
的 output 中的字符具有相同的含义:
D
d
该符号在初始化数据段中。
S
s
该符号位于小对象的未初始化数据段中。
T
t
符号在文本(代码)部分。
大写符号是全局/导出的; 小写是本地未导出的符号。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.