Oracle® Solaris 11.2 Linkers and Libraries Guide

Exit Print View

Updated: July 2014


The STUB_OBJECT directive informs the link-editor that the object described by the mapfile can be built as a stub object.


A stub shared object is built entirely from the information in the mapfiles supplied on the command line. When the –z stub option is specified to build a stub object, the presence of the STUB_OBJECT directive in a mapfile is required, and the link-editor uses the information in symbol ASSERT attributes to create global symbols that match those of the real object.