Profiling of shared libraries


I use gcc on QNX 6.1 (x86) to generate my program which uses shared
libraries. But i cannot find calls of dynamic libraries in my
profiling-results when I use gprof to show them. I generate my shared
libraries with the option -p too.

Is it possible to profile shared libraries? Do I have to specify LD_PROFILE
I have gcc of version 2.95.2