Build shared profiled library?

Dag-Erling Smørgrav des at des.no
Fri Apr 10 12:25:52 PDT 2009


Jean-Sébastien Pédron <dumbbell at FreeBSD.org> writes:
> Currently, only static profiled library are built during buildworld. Why
> not shared library too?

Because - if I understand correctly how gprof works - you wouldn't be
able to profile code inside the libraries, unless gprof knew enough
about rtld to figure out which libraries were loaded, in which order, at
which addresses, and duplicate the relocations.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-arch mailing list