Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ optionalsym() — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

elfdump(1)



OPTIONALSYM                                                        OPTIONALSYM



NAME
     optionalsym - transform ELF symbols to optional symbols

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

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

          -v selectname
               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 STODEFAULT , STOINTERNAL ,
               STOHIDDEN , STOPROTECTED , and STOOPTIONAL.  If multiple -v
               are supplied only the last

          -u updateto
               updates the st_other field of the selected symbols to contain
               the the updateto value.  Legal values for updateto are any one
               of STODEFAULT , STOINTERNAL , STOHIDDEN , STOPROTECTED ,
               and STOOPTIONAL.  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.

          -y symname
               selects a symbol with the name symname.  If multiple -y options
               are given 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)








                                                                        Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026