[macosx]dlopen 是否调用 open 和 read 函数?

发布于 2024-08-21 03:57:35 字数 238 浏览 2 评论 0原文

我拦截了(插入)MacOS X 下的 dlopen 函数和其他一些函数。 我在日志中看到我的应用程序如何调用 dlopen,但在动态库被 dlopen 后没有找到与打开/读取函数相关的任何内容。系统如何访问和读取动态库文件呢?我查看了 dyld 的源代码,它确实调用了 dlopen 上的 open/read 。 有人能让我知道我错过了什么吗? 拦截的函数: dlopen、打开、读取、写入、访问、所有统计功能、关闭等。

谢谢,非常感谢任何帮助。

I've intercepted(interposed) dlopen function under MacOS X and some other functions.
I see how my applications calls dlopen in the log, but don't find anything related to open/read functions after dynamic library was dlopened. How does the system accesses and reads the dynamic library file? I've looked at the source code of dyld, and it does call open/read on dlopen.
Can anybody let me know what I'm missing?
intercepted functions:
dlopen, open, read, write, access, all stat functions, close, etc.

thanks, any help is highly appreciated.

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

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

发布评论

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

评论(1

予囚 2024-08-28 03:57:35

dlopen() 成功后,通常会调用 dlsym() 来查找库中的函数等。

After dlopen() succeeds then dlsym() would typically be called to look up functions etc in the library.

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