- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to know the object files in a shared library
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2002 08:34 PM
тАО06-26-2002 08:34 PM
How to know the object files in a shared library
Can someone help me how to know the object files in a .sl or a .a file?
Regards,
Durga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2002 09:58 PM
тАО06-26-2002 09:58 PM
Re: How to know the object files in a shared library
I believe "nm" can give you that information.
#man nm
Hope this helps,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2002 10:06 PM
тАО06-26-2002 10:06 PM
Re: How to know the object files in a shared library
The nm command displays the symbol table of each object file
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2002 10:45 PM
тАО06-26-2002 10:45 PM
Re: How to know the object files in a shared library
Hi,
As your question is "hot to know the object files...", the two first responses are not
correct.
To see what object-files are ina .a use the
following (exampe for libc.a)
ar -tv /usr/lib/libc.a
For shared libs you may use this command:
odump -compunit /usr/lib/libc.1
It will give a lot of output but also what
source-files were used to compile to the
.o files. It will also show when compilation
was done and compiler used, options etc.
Regards
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2002 05:08 AM
тАО06-27-2002 05:08 AM
Re: How to know the object files in a shared library
Thanks for the info.
For the .a files, "ar -tv" is working perfectly. But for the .sl files, "odump -compunit" is not giving the list of .o files.
Rather, 'strings <.sl file> | grep "\.o' is useful to some extent with non-striped .sl files. Is there a way further if we can get the list of .o files from a striped .sl file?
Regards,
Durga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2002 06:19 PM
тАО06-27-2002 06:19 PM
Re: How to know the object files in a shared library
odump is not included in HPUX11.0 CORE OS Media.
If you install recent "ld(1) Linker & Tools Cumulative Patch", (PHSS_24303: recommended, PHSS_26262: most recent)
odump will be installed in /usr/ccs/bin.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2002 11:17 PM
тАО06-27-2002 11:17 PM
Re: How to know the object files in a shared library
Hi again,
You are right in saying that odump -compunit
does not give a list of .o files.
But it gives info about what source-files
were compiled to produce the .o files that
make up the library. It is listed under
column name.
So assuming that
the files were compiled without using -o
option, the .o filename will be the same
as the source-filename except for the .o
For striped .sl files I see no solution.
What problem do have that makes you need this
info? I ask because knowing the real problem
often leads to solutions along other paths
than first followed.
Regards
Olav