cancel
Showing results for 
Search instead for 
Did you mean: 

information iside a shared lib

 
SOLVED
Go to solution
Highlighted
Frequent Advisor

information iside a shared lib

Hi,

Is there a way/command to know the compiation options used to build that shared library?

I am mainly interested in the optimization level/options used to build the shared lib


TIA
Satya


7 REPLIES 7
Highlighted

Re: information iside a shared lib

Satya,

Does:

elfdump -dc

show you what you need?

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Highlighted
Frequent Advisor

Re: information iside a shared lib

Duncan:

Thanks for the suggestion, but I get an error "Bad input filetype" when I use elfdump -dc on my .sl file, its the same on the executable

I tried it on HP-UX 11.11

which elfdump shows /usr/ccs/bin/elfdump

TIA
Satya
Highlighted
Solution

Re: information iside a shared lib

Satya,

I guess your shared lib is in the old SOM format rather than ELF. Try odump instead

odump -compunit

On my (11.31) system odump wasn't in the path... but it may be on 11.11.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Highlighted
Frequent Advisor

Re: information iside a shared lib

Duncan:

thanks odump works fine for me.

Satya
Highlighted
Acclaimed Contributor

Re: information iside a shared lib

You can also use footprints(1) to get a nice summary/decode of the compile options.

>Duncan: On my (11.31) system odump wasn't in the path

They should both be in /usr/ccs/bin.
Highlighted

Re: information iside a shared lib

Dennis,

On this 11.31/IA system odump is in /usr/ccs/pa/usr/ccs/bin

Regards

Duncan

I am an HPE Employee
Accept or Kudo
Highlighted
Acclaimed Contributor

Re: information iside a shared lib

>Duncan: On this 11.31/IA system odump is in /usr/ccs/pa/usr/ccs/bin

Yes, the PA linker tools are in a SDK under /usr/ccs/pa on Integrity servers.