Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以在 Linux 中检索已加载共享对象的文件路径吗?
(就像在 Windows 上一样,有一个 API GetModuleFileNameEx 返回给定模块加载地址的文件路径)。
另外,我可以在 Linux 上获取共享对象的加载地址吗?
谢谢
One way for you to do both is to parse /proc/self/maps. That gives you both the virtual address ranges and mapped files. Fair word of warning, though: not all of the filenames are files!