HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Finding objects that makeup executable
Operating System - HP-UX
1827444
Members
6049
Online
109965
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
12-11-2002 09:50 AM
12-11-2002 09:50 AM
Finding objects that makeup executable
How to find objects that make executable?
i didnt had a luck with
cc -Wl,-v -o exe_file |& grep Loading
i didnt had a luck with
cc -Wl,-v -o exe_file |& grep Loading
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2002 09:59 AM
12-11-2002 09:59 AM
Re: Finding objects that makeup executable
I'm not really sure of what you mean:
if you want to see all the objects in an executable, try nm.
Manpage:
http://docs.hp.com/hpux/onlinedocs/B2355-90680/B2355-90680.html
If you want to see the shared libraries for an executable, try ldd
Manpage:
http://docs.hp.com/hpux/onlinedocs/B2355-90680/B2355-90680.html
Hope this helps!
Cheers,
FiX
if you want to see all the objects in an executable, try nm.
Manpage:
http://docs.hp.com/hpux/onlinedocs/B2355-90680/B2355-90680.html
If you want to see the shared libraries for an executable, try ldd
Manpage:
http://docs.hp.com/hpux/onlinedocs/B2355-90680/B2355-90680.html
Hope this helps!
Cheers,
FiX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2002 10:10 AM
12-11-2002 10:10 AM
Re: Finding objects that makeup executable
if iam not wrong nm displays symbol table info about a file which is either
1)object file or
2)executalble object file
how to know all objects that make up an executable,usually we can do HP platform using
cc -Wl,-v -o exe_file |& grep Loading.
but couldnt find anything.
1)object file or
2)executalble object file
how to know all objects that make up an executable,usually we can do HP platform using
cc -Wl,-v -o exe_file |& grep Loading.
but couldnt find anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2002 03:45 PM
12-12-2002 03:45 PM
Re: Finding objects that makeup executable
The -Wl,-v style should show all the .o files that an exe has pulled in from archive libraries. It won't show any individual files within referenced shared libraries. Each shared library is used in a largely all-or-nothing manner.
For an unstripped 32-bit PA-RISC executable you can use
odump -compunit a.out
to see all of the source files that went into an a.out or shared library. (It depends on the compiler putting the right information into each .o file. HP compilers do that but gcc won't.)
For a 64-bit or IPF executable use
elfdump -dc a.out
for the same kind of list.
For an unstripped 32-bit PA-RISC executable you can use
odump -compunit a.out
to see all of the source files that went into an a.out or shared library. (It depends on the compiler putting the right information into each .o file. HP compilers do that but gcc won't.)
For a 64-bit or IPF executable use
elfdump -dc a.out
for the same kind of list.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP