Linker and Libraries Guide

Combined Relocation Sections

Relocations by default are grouped by the sections against which they are to be applied. However, when an object is built with the -z combreloc option, all but the Procedure Linkage Table relocations are placed into a single common section titled .SUNW_reloc. This permits the most efficient relocation processing for an object by grouping all RELATIVE relocations together and the sorting of all of the symbolic relocations by symbol name. The grouping of the RELATIVE relocations together permits the performance benefits of the DT_RELACOUNT/DT_RELCOUNT .dynamic entry.