ELF/linux 中 Mach-O 的两级命名空间符号解析
有人知道 ELF/linux 中与 Mach-O 的两级命名空间符号解析等效的吗?我想要链接到 lib+sym 的代码,而不是 sym。
我正在尝试做最能描述为通常是 JIT 编译的预编译。我想获得符号的编译时绑定,这通常由 dlopen/dlsym 完成。然而,可能会发生冲突,dlopen/dlsym 可以很好地避免这种情况。
看起来 ELF 实际上缺少这个,并且有 VERSION 的东西,但任何解决方法或建议将不胜感激。
Anyone know of an equivalent to Mach-O's two-level namespace symbol resolution in ELF/linux? I want code that links to lib+sym, not sym.
I'm trying to do what could best be described as precompilation of what normally would be a JIT compilation. I'd like to get a compile time binding of symbols, that normally would be done by a dlopen/dlsym. However, there could be collisions, which are nicely avoided by the dlopen/dlsym.
It seems that ELF actually lacks this, and there is the VERSION stuff, but any workarounds or suggestions would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有 ELF 等效项(通常不需要)。
There is no ELF equivalent (and usually one isn't needed).
听起来您想要
dlmopen
。It sounds like you want
dlmopen
.