optionalsym(1)

optionalsym - Transform ELF symbols to optional symbols

As shipped in IRIX 6.5.5. Last changed in IRIX 6.5.5.

NAME
     optionalsym - Transform ELF symbols to optional symbols

SYNOPSIS
     optionalsym [-p] [-u updateto] [-v selectname] [-y symname] file ...

IMPLEMENTATION
     IRIX systems

DESCRIPTION
     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.

     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.

     -v selectname
          Selects symbols with st_other having that value.  For example,
          the following command line prints all symbols marked
          STO_OPTIONAL:

          optionalsymbol -v STO_OPTIONAL -p t.o

     Legal values for selectname can be any one of STO_DEFAULT,
     STO_INTERNAL, STO_HIDDEN, STO_PROTECTED, and STO_OPTIONAL.  If
     multiple -v options are specified, only the last is actually used.

     -u updateto
          Updates the st_other field of the selected symbols to contain the
          the updateto value.  Legal values for updateto can be any one of
          STO_DEFAULT, STO_INTERNAL, STO_HIDDEN, STO_PROTECTED, and
          STO_OPTIONAL.  If multiple -u options are specified, the last one
          is used (the others are silently ignored).  If -u is not
          specified, then -p is assumed.

     -y symname
          Selects a symbol with the name symname.  If multiple -y options
          are specified, each name in the set of names is selected.

FILES
     /usr/bin/optionalsym
     /usr/include/elf.h
     /usr/include/sys/elf.h

SEE ALSO
     elfdump(1)

     This man page is available only online.