By-Name Symbol Sort Sections
A single by-name symbol sort section provides access to both regular symbols and thread-local storage symbols.
The link-editor produces the following by-name symbol sort sections.
-
.SUNW_dynsymnsort
-
A section of type
SHT_SUNW_SYMNSORT
, containing indexes to symbols in the combined.SUNW_ldynsym
–.dynsym
symbol table, sorted by name, in lexical order. -
.SUNW_symtabnsort
-
A section of type
SHT_SUNW_SYMNSORT
, containing indexes to symbols in the.symtab
symbol table, sorted by name, in lexical order.
The .SUNW_dynsymnsort
section requires that a
.SUNW_ldynsym
section be present. Therefore, use
of the -z noldynsym
option also prevents the creation of
the .SUNW_dynsymnsort
sort section.
The link-editor uses the following rules, in the order that is shown, to select which symbols are referenced by these sort sections.
-
The symbol must have a function or variable type:
STT_FUNC
,STT_OBJECT
,STT_COMMON
, orSTT_TLS
. -
The symbol must not be undefined.