Sun Studio 12 Update 1: C++ User's Guide

A.2.108 -xannotate[=yes|no]

(Solaris) Instructs the compiler to create binaries that can later be transformed by binary modification tools like binopt(1). Future binary analysis, code coverage and memory error detection tools will also work with binaries built with this option.

Use the -xannotate=no option to prevent the modification of the binary file by these tools.

The -xannotate=yes option must be used with optimization level -xO1 or higher to be effective, and it is only effective on systems with the new linker support library interface -ld_open(). If the compiler is used on an operating system without this linker interface, such as the Solaris 9 OS, the compiler silently reverts to -xannotate=no. The new linker interface is available in Solaris 10 patch 127111-07, Solaris 10 Update 5 and OpenSolaris.

The default is -xannotate=yes, but if either of the above conditions is not met, the default reverts to -xannotate=no.

This option is not available on Linux platforms.