由多个可执行文件共享的动态库的通用功能

时间:2022-08-08 15:31:17

I have an issue I don't know how to solve.

我有一个问题,我不知道如何解决。

I have ever written a program (Python script) which returns a list of dynamic libraries with all the executables using them. (My script uses the ldd utility).

我曾编写过一个程序(Python脚本),它返回一个包含所有可执行文件的动态库列表。 (我的脚本使用ldd实用程序)。

Now, I'd like to do a program which would return a list of functions of dynamic libraries with all the executables using them. But how can I do that ??

现在,我想做一个程序,它将返回动态库的功能列表,其中包含使用它们的所有可执行文件。但是我怎么能这样做?

(I think the main problem is that libraries are build and to do that I need source code, right ?)

(我认为主要的问题是库是构建的,为此我需要源代码,对吧?)

Thanks !! JC

谢谢 !! JC

1 个解决方案

#1


If you have ldd you should also have nm. This will list symbols in a binary, executable or shared object alike assuming symbols are included. This tool reports the function names indicating both local and external dependency information. You should be able to use this to do what you want.

如果你有ldd,你也应该有nm。假设包含符号,这将列出二进制,可执行或共享对象中的符号。此工具报告指示本地和外部依赖关系信息的函数名称。你应该能够用它来做你想做的事。

#1


If you have ldd you should also have nm. This will list symbols in a binary, executable or shared object alike assuming symbols are included. This tool reports the function names indicating both local and external dependency information. You should be able to use this to do what you want.

如果你有ldd,你也应该有nm。假设包含符号,这将列出二进制,可执行或共享对象中的符号。此工具报告指示本地和外部依赖关系信息的函数名称。你应该能够用它来做你想做的事。