![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can i read a non text file in unix - ELF-64 executable object file - IA64 | alexcol | UNIX for Advanced & Expert Users | 8 | 11-07-2008 08:56 AM |
| Object File Error | Stevhp | High Level Programming | 3 | 03-08-2007 04:20 AM |
| Shared Object File | sarwan | Linux | 0 | 10-07-2005 06:27 AM |
| nfs exports and netmask option | progressdll | UNIX for Advanced & Expert Users | 0 | 09-22-2005 04:07 AM |
| /etc/exports | yls177 | UNIX for Dummies Questions & Answers | 1 | 11-05-2002 11:27 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Listing function exports from object file
Is it possible to view all the functions exported by a given object file?
"dump -tv" comes the closest, but what exactly am I looking for to determine whether the symbol exists in the object file? Essentially, I have a library that requires a call to "xdr_sizeof" and the compile is failing because the linker can not find it. I am curious if I can find where (and if) this function is provided so I can link it in. I have ran the following under /usr/lib: Code:
for i in `find . -name "*.a"` do cnt=`dump -tv $i | grep -c xdr_sizeof` if [ $cnt -ne 0 ] then echo $i " " $cnt fi done ./libnsl.a 3 ./libnsl_r.a 3 ./libtt.a 1 ./libnisdb.a 4 How do I know which of those, if any, actually contains the xdr_sizeof function I want? Is there a better way to do the dump to limit it only to outputing lines for functions exported by the library? Am I completely off base here? I know the function can not be in four different libraries...or it shouldn't be.... AIX 5.2 is the O/S if it matters! Thanks y'all! |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|