![]() |
how to display static libraries linked in executables ?
Hi,
I'd like to know how to display the information about what static (.a) libraries have been linked in an executable. The command "ldd" shows only dynamic libs. I've searched the web for answers. Some suggest using the "nm" command, but I get "nm: <filename>: no symbols". I guess this is because my executables are "strip"-ed. Any other suggestion ? |
yes, you are right, those infos can be stripped, so static libraries cannot be identified. If you knew how that execucable was built you can have the list of libraries...
|
Quote:
Could you explain, why you want display static libraries linked into executable, may be there is another way to achieve what you really need. |
Quote:
The existing "ncurses" on my system contains only static libs. Recently I built "--with-shared" and installed the lastest version. When I remove the old tree, some full-screen executables (e.g. emacs) do not start because they depend on the terminfo of the old tree. Now I've to keep the old terminfo branch in order to fix the problem. I'd like to find out which executables have been linked with the old static ncurses libs, such that I can re-build them with the shared libs of the new version. |
Quote:
Code:
strings -a your_executable | grep /path/to/terminfo_dirYou can use strings + grep to search for such string in your executables |
Quote:
|
Quote:
|
| All times are GMT -5. The time now is 05:02 PM. |