Re: ldd/chatr for parisc binaries on Itanium machines (476 Views)
Reply
Valued Contributor
Srimalik
Posts: 436
Registered: ‎11-28-2006
Message 1 of 4 (476 Views)
Accepted Solution

ldd/chatr for parisc binaries on Itanium machines

When I use the IA ldd on PA binaries it says
"not a valid ELF file shared executable" (not the exact error but smthing like that)

Then I copied ldd from a PA system to the IA system. It did not give me any error but any output was not displayed :(.

chatr also fails

Is there a tools which does the same work as ldd and works on PA binaries kept IA systems ?

Thanks
Sri
abandon all hope, ye who enter here..
HP Pro
Rajesh K Chaurasia
Posts: 76
Registered: ‎01-31-2008
Message 2 of 4 (476 Views)

Re: ldd/chatr for parisc binaries on Itanium machines

Check if you have PA-RISC utilities under /usr/ccs/pa/usr/ccs/bin and /usr/ccs/pa/usr/ccs/lbin directories. If not, install latest linker patch.

To get chatr, ldd etc working on PA-RISC binaries on Integrity servers -

export PATH=/usr/ccs/pa/usr/ccs/bin:/usr/ccs/pa/usr/ccs/lbin:$PATH

After setting the path as above you should be able to invoke PA-RISC chatr, ldd commands on PA-RISC binaries. You will however not be able to invoke these commands on Integrity native executables from same shell where PATH environment variable is modified.

Alternatively, you can directly invoke chatr32, ldd32 from /usr/ccs/pa/usr/ccs/lbin on PA-RISC executables.
Acclaimed Contributor
Dennis Handly
Posts: 25,206
Registered: ‎03-06-2006
Message 3 of 4 (476 Views)

Re: ldd/chatr for parisc binaries on Itanium machines

>Rajesh: To get chatr, ldd etc working on PA-RISC binaries ...
>export PATH=/usr/ccs/pa/usr/ccs/bin ...

This isn't the right way. The proper way is:
$ SDKROOT=/usr/ccs/pa chatr pa_a.out

>you can directly invoke chatr32, ldd32 from /usr/ccs/pa/usr/ccs/lbin

This typically doesn't work and no output is produced. (chatr(1) seems to work.)

Unless ldd has been fixed, I don't see the ldd32 symlink.
See my reply in this big long thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1201952

Probably a bug report should be filed on the missing ldd.
Valued Contributor
Srimalik
Posts: 436
Registered: ‎11-28-2006
Message 4 of 4 (476 Views)

Re: ldd/chatr for parisc binaries on Itanium machines

exporting PATH did not make chatr/ldd display the info.

But, using Dennis's method made chatr to work.

Thanks
Sri
abandon all hope, ye who enter here..
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.