查找包含符号的 OS X kext 库

发布于 2024-09-12 12:19:14 字数 570 浏览 2 评论 0原文

在 Snow Leopard 10.6.4 中,我获得了一个未解析的符号:

$ sudo kextutil KRPC.kext
(kernel) kxld[com.machackershandbook.kext.KRPC]: The following symbols are unresolved for this kext:
(kernel) kxld[com.machackershandbook.kext.KRPC]: _mig_buckets

我无法使用 kextfind 找到该符号,但是该符号已在内核中导出:

$ kextfind -dsym _mig_buckets
$ nm -arch i386 /mach_kernel |grep _mig_buckets
00844b00 S _mig_buckets
$ nm -arch x86_64 /mach_kernel |grep _mig_buckets
ffffff8000672e40 S _mig_buckets

如何使用 OSBundleLibraries 找到与该符号链接的 kext 库代码> 字典?

with Snow Leopard 10.6.4 I am obtaining an unresolved symbol:

$ sudo kextutil KRPC.kext
(kernel) kxld[com.machackershandbook.kext.KRPC]: The following symbols are unresolved for this kext:
(kernel) kxld[com.machackershandbook.kext.KRPC]: _mig_buckets

I cannot find this symbol using kextfind, however this symbol is exported in the kernel:

$ kextfind -dsym _mig_buckets
$ nm -arch i386 /mach_kernel |grep _mig_buckets
00844b00 S _mig_buckets
$ nm -arch x86_64 /mach_kernel |grep _mig_buckets
ffffff8000672e40 S _mig_buckets

How can I find the kext library to link with this symbol using the OSBundleLibraries dict?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深海少女心 2024-09-19 12:19:15

您是否尝试过运行 kextlibs 在你的 kext 上吗?它可能会给你正确的依赖。
否则,可能是以下之一:

  • com.apple.kpi.mach
  • com.apple.kpi.unsupported

请参阅 此 Apple 问答,了解有关不受支持的 KPI 的更多信息

Have you tried running kextlibs on your kext? it may give you the correct dependency.
Otherwise, it is likely one of the following:

  • com.apple.kpi.mach
  • com.apple.kpi.unsupported

see this apple Q&A for more information about the unsupported KPI

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文