optionalsym - transform ELF symbols to optional symbols
optionalsym [-p] [-u updateto] [-v selectname] [-y symname] file ...
The optionalsym command both reports on and sets the st_other field in an
ELF symbol table.
It was written to manipulate the STO_OPTIONAL value in the st_other field
of the ELF symbol table. Thus the name optionalsym.
The optionalsym command accepts one or more of the following options:
-p prints information on selected symbols. If -u is also
supplied, the symbol is printed before updating.
selects symbols with st_other having that value. For example,
optionalsymbol -v STO_OPTIONAL -p t.o
prints all symbols marked STO_OPTIONAL. Legal values for
selectname are any one of STO_DEFAULT , STO_INTERNAL ,
STO_HIDDEN , STO_PROTECTED , and STO_OPTIONAL. If multiple -v
are supplied only the last
updates the st_other field of the selected symbols to contain
the the updateto value. Legal values for updateto are any one
of STO_DEFAULT , STO_INTERNAL , STO_HIDDEN , STO_PROTECTED ,
and STO_OPTIONAL. If multiple -u are supplied the last one's
updateto is used (the others are silently ignored). If -u is
not supplied then -p is assumed.
selects a symbol with the name symname. If multiple -y options
are given each name in the set of names is selected.
PPPPaaaaggggeeee 1111 [ Back ]