- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to get on which version of the OS the bina...
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
тАО08-26-2002 03:30 AM
тАО08-26-2002 03:30 AM
How to get on which version of the OS the binary is compiled
I have got some binary. It is mentioned that they have compiled on HP-UX10.X.
My question is how to find out what version of the OS is used while compiling the binary? and also what version is used for compiling the Shared Library.
The utilities like what, chatr and ldd are not giving this information.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2002 03:38 AM
тАО08-26-2002 03:38 AM
Re: How to get on which version of the OS the binary is compiled
#file binary_file
will give you more information.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2002 04:02 AM
тАО08-26-2002 04:02 AM
Re: How to get on which version of the OS the binary is compiled
Have you tried with
what
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2002 04:04 AM
тАО08-26-2002 04:04 AM
Re: How to get on which version of the OS the binary is compiled
A- 9000/893/T600
HP-UX OS Release B.11.0 - 32 Bits
# file /stand/vmunix
/stand/vmunix: PA-RISC1.1 executable -not stripped
B- 9000/800/R390
HP-UX OS Release B.11.0 - 64 Bits
# file /stand/vmunix
/stand/vmunix: ELF-64 executable object file - PA-RISC 2.0 (LP64)
Cheers!
T??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2002 04:22 AM
тАО08-26-2002 04:22 AM
Re: How to get on which version of the OS the binary is compiled
'what' /could/ give you more info (but not neccesarily). If it produces output, look for crt0.o
# what less
less:
$Revision: 92453-07 linker linker crt0.o B.11.30 010914 $
#
That'll show you on what system the binary was linked (and therefor most likely also compiled)
Some prefer 'ident' over 'what', because it shows RCS (Revision Control System) version info ('what' shows SCCS (Source Code Control System) info)
# ident less
less:
$Revision: 92453-07 linker linker crt0.o B.11.30 010914 $
#
For some binaries 'strings' reveal a whole lot of information about it that `standard' utilities hide for you. Also 'chatr' might be useful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2002 05:17 AM
тАО08-26-2002 05:17 AM
Re: How to get on which version of the OS the binary is compiled
Hi,
There is a command odump that will
give you info about what compiler-version and
on what HP-UX version a binrary was compiled.
On hp-ux 10.20 you will find odump
in /usr/contrib/bin
On hp-ux 11.xx you will find odump in
/usr/ccs/bin/odump
If you do not find it there, install one
of the later ld-patches (e.ex PHSS_26262)
Use odump like this to get the info you
want:
odump -compunit
Regards
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2002 05:38 AM
тАО08-26-2002 05:38 AM
Re: How to get on which version of the OS the binary is compiled
# odump -compunit !$
odump -compunit /pro/bin/less
Compilation Unit Dictionary from /pro/bin/less:
Index Chunk Language Name
Product_id ; Version_id
Compile time ; Source time
#
Uhhhh, no additional info whatsoever.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2002 06:02 AM
тАО08-26-2002 06:02 AM
Re: How to get on which version of the OS the binary is compiled
I will still highly recommend the odump
command.
The output Procura has demonstrated is
exactly what you get from odump when
the binaray has been stripped with the
strip command.
You can see if a binary has been stripped
by using the file command:
file lesdir.exe
lesdir.exe: PA-RISC1.1 shared executable dynamically linked
showes that the executalble lesdir.exe has
been stripped, while
/home/olav/com: file meminfo.exe
meminfo.exe: PA-RISC1.1 shared executable -not stripped
show that meminfo.exe has not been stripped.
Regards
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2002 06:43 AM
тАО08-26-2002 06:43 AM
Re: How to get on which version of the OS the binary is compiled
You may try man ident.
Manoj Srivastava