On Solaris and HP-UX Itanium, pldd $process_id will give the shared objects loaded for that process. AIX has procldd and Linux has pmap that have the same functionality.
Is there an equivalent for HP-UX PA-RISC?
If not - what approach should be taken to writing one. Use ttrace() maybe?