Operating System - HP-UX
1829541 Members
3498 Online
109992 Solutions
New Discussion

information iside a shared lib

 
SOLVED
Go to solution
Satya_6
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

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
Satya_6
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
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
Satya_6
Frequent Advisor

Re: information iside a shared lib

Duncan:

thanks odump works fine for me.

Satya
Dennis Handly
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.

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
Dennis Handly
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.