- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- need to find the source files of a binary
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
тАО05-01-2008 11:19 PM
тАО05-01-2008 11:19 PM
need to find the source files of a binary
I want to find the list of files/size in a binary file.
Is there any command to find the list of files(with file size) used to create a particular binary file?
Thanks,
Sathish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2008 11:34 PM
тАО05-01-2008 11:34 PM
Re: need to find the source files of a binary
Which binary file are you referring to?
If it is an open source software, you find it by doing a google search otherwise it is practically impossible to find the source of a proprietary software.
revert!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2008 11:50 PM
тАО05-01-2008 11:50 PM
Re: need to find the source files of a binary
In UNIX, I have used source programs 1.c, 2.c and 3.c and created a binary file(sample) using those programs.
With this binary file, if I want to know what all the source programs used to build this binary then what command can be used?
Regards,
Sathish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2008 12:36 AM
тАО05-02-2008 12:36 AM
Re: need to find the source files of a binary
If you were using clearcase and you were in the view, you could do "ct catcr".
- Tags:
- clearcase
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2008 05:58 AM
тАО05-02-2008 05:58 AM
Re: need to find the source files of a binary
most such systems have the ability to embed the source file name and version number as comments in the code. using those, you could get the file size of each given revision of the file.
such source control systems vary in complexity, ease of use and features, and each seem to have their own very vocal supporters.
rcs or sccs is usually available on most systems and should suffice for the stated need
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2008 07:36 PM
тАО05-02-2008 07:36 PM
Re: need to find the source files of a binary
I'm not sure why the size of the source code has any meaning. The simplest program (such as the typical "Hello world" example) may be 4 lines long or 50 lines long full of comments.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2008 08:58 PM
тАО05-02-2008 08:58 PM
Re: need to find the source files of a binary
Sure there is. :-)
This is the default on IPF and for PA, you need -g.
Though the comp unit record on PA may also have it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2008 09:19 PM
тАО05-02-2008 09:19 PM
Re: need to find the source files of a binary
Could you please let me know the command that needs to be used ?
Thanks,
Sathish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2008 09:29 PM
тАО05-02-2008 09:29 PM
Re: need to find the source files of a binary
For PA, you can use:
32: odump -comp binary
64: elfdump -dc binary
You are going to have to parse the output and put the file path components together.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2008 09:58 PM
тАО05-02-2008 09:58 PM
Re: need to find the source files of a binary
Thanks for the information. We have compiled & created the binary in HP-UX 11i version and using the same executable in HP-UX 11V2 version. The current operating system version is 11V2 only. Could you please let me know which command we can make use to see the source files used in a binary(11i executable) in a 11V2 server?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2008 10:01 PM
тАО05-02-2008 10:01 PM
Re: need to find the source files of a binary
I told you how to do it for a PA system.