1

我正在比较来自 module.kld 和 module.ko 的 readelf -s 快照,用于在交叉编译器 FreeBSD 10 环境中构建的模块,

symtab 中的符号是否在 module.kld 和 module.ko 之间重新排序,例如

readelf -s module.kld 我们选择 2 个符号 2651: 000b8230 74 FUNC GLOBAL DEFAULT 1 jail_equal_ip6 2652: 00030140 3318 FUNC GLOBAL DEFAULT 1 ip_output

将它们与 module.ko 中的 readelf -s 进行比较 2558: 0007a6d0 3318 FUNC GLOBAL DEFAULT 5 ip_output 2559: 001027c0 74 FUNC GLOBAL DEFAULT 5 jail_equal_ip6

所以符号 ip_output 出现在 module.kld 中的 jail_equal_ip6 之后,但出现在 module.ko 中它之前。问题是这会影响 DTrace FBT 探测,运行 ip_output 的 FBT 探测显示为具有 jail_equal_ip6 的参数。

module.ko 从 module.kld 派生的方式是 ld -m elf_i386 -Bshareable --verbose -o module.ko.debug module.kld

我怎样才能抑制这种重新排序?

4

0 回答 0