Sun Studio 12: C++ User's Guide

B.2.9 #pragma ident


#pragma ident string

Use ident to place string in the .comment section of the executable.