Oracle® Solaris Studio 12.4: Performance Analyzer

Exit Print View

Updated: January 2015
 
 

Static Linking

For some types of performance data such as heap tracing and I/O tracing, data collection relies on a dynamically linked libc. This functionality is lost when you link statically, so you should not use options such as -dn and -Bstatic with Oracle Solaris Studio compilers.

If you try to collect data for a program that is entirely statically linked, the Collector prints an error message and does not collect data. The error occurs because the collector library, among others, is dynamically loaded when you run the Collector.

Do not statically link any of the system libraries or the Collector library, libcollector.so.