This is a discussion on Library dependency follower within the AIX Operating System forums, part of the Unix Operating Systems category; --> Is anyone aware of a tool that can follow library dependencies for a given executable? For example, executable a.out ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Is anyone aware of a tool that can follow library dependencies for a given executable? For example, executable a.out uses libc.a[shr.o] and libdummy.a[dummy.o] which in turn uses libc.a[strcat.o]. This would generate: a.out libc.a[shr.o] libdummy.a[dummy.o] libc.a[strcat.o] The reason I ask is that I'm getting a large number of programs unable to load librarties because of these dependencies and it's tedious doing the manual work of using dump, ar, et al. Before I launch into writing a script to do it automatically, I thought I'd ask the experts (<- sound of grovelling here). Any assistance would be appreciated. |
| ||||
| Allan Chandler <nobody@nowhere.com> wrote: AC> Is anyone aware of a tool that can follow library dependencies for a given AC> executable? For example, executable a.out uses libc.a[shr.o] and AC> libdummy.a[dummy.o] which in turn uses libc.a[strcat.o]. This would AC> generate: AC> a.out AC> libc.a[shr.o] AC> libdummy.a[dummy.o] AC> libc.a[strcat.o] AC> The reason I ask is that I'm getting a large number of programs unable to AC> load librarties because of these dependencies and it's tedious doing the AC> manual work of using dump, ar, et al. Before I launch into writing a script AC> to do it automatically, I thought I'd ask the experts (<- sound of AC> grovelling here). I don't know of one but a Perl script using recursion would be easy to write. If not one posts code for you to use, would you mind posting the code you write to the group for others to use? Regards, Nicholas -- http://www.faqs.org/rfcs/rfc1855.html 3.1.1 General Guidelines for mailing lists and NetNews 3.1.3 NetNews Guidelines |