NAME
tools/dev/nm.pl - Display symbol table information
SYNOPSIS
% perl tools/dev/nm.pl [options] file
To list all the symbols in Parrot:
% perl tools/dev/nm.pl parrot
DESCRIPTION
Portable frontend for nm(1); by default lists all the code and data symbols in the object or archive files.
Command-Line Options
The following options can be used to limit the symbols:
- --code
- -cList the code/text symbols.
- --data
- -dList the data symbols.
- --init
- -iList the initialised data symbols.
- --uninit
- -uList the uninitialised data symbols.
- --const
- -CList the constant (read-only) data symbols.Not all platforms support this, a warning will be given if not. You can try GNU
- --undef
- -UList the undefined symbols.
- --def
- -DList the defined symbols.
- --file
- -fList the file(name) symbols.
nm if you want this feature.
If more than one of all the above options are given, they are ANDed. They can also be negated with a "no", for example --noconst.
- --objectname
- -oPrepend the object name before the symbol name.
- --tAppend the short BSD-style type to the symbol name.
- --type=bsd
- -BThe same as
- --type=long
- -LAppend a long type (e.g. "global_const_init_data" versus "R") to the symbol name.
- --helpShow the help.
- --versionShow the version number.
    B - uninitialised data symbol
    D - initialised data symbol
    F - file name symbol
    R - read-only data symbol
    T - code/text symbol
    U - undefined symbol
Uppercase indicates that the symbol is global; lowercase indicates that it is local.
--t.
All the options can be shortened to their unique prefixes, and one leading dash ("-") can be used instead of two ("--").
HISTORY
Author: Jarkko Hietaniemi.
