Operating System - HP-UX
1753973 Members
7696 Online
108811 Solutions
New Discussion юеВ

Re: How to get the compiler version from a binary ?

 
SOLVED
Go to solution
chenn_1
Advisor

How to get the compiler version from a binary ?

Do we have any easy we to get the original compiler information of a binary, on HPUX IA/PA machine ?
2 REPLIES 2
Anshumali
Esteemed Contributor

Re: How to get the compiler version from a binary ?

2C:
I tried copying the binary from hp-ux to linux and doing readelf. It was able to give me OS/ABI

# readelf -a tar|more
ELF Header:
Magic: 7f 45 4c 46 01 02 01 01 01 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, big endian
Version: 1 (current)
OS/ABI: UNIX - HP-UX
ABI Version: 1
Type: EXEC (Executable file)
Machine: Intel IA-64
Version: 0x1

I am sure others will post the proper answer soon...

Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Dennis Handly
Acclaimed Contributor
Solution

Re: How to get the compiler version from a binary ?

You can use footprints(1) to give you a summary.
Otherwise for PA32 you can use: odump -comp
For Integrity or PA64 you can use: elfdump -dc