NM(1) General Commands Manual NM(1)NAME
nm - name list (symbol table)
SYNOPSIS
nm [ -aghnsu ] file ...
DESCRIPTION
Nm prints the name list of each executable or object file in the argument list. If the file is an archive (see ar(1)), the name list of
each file in the archive is printed. If more than one file is given in the argument list, the name of each file is printed at the begin-
ning of each line.
Each symbol name is preceded by its hexadecimal value (blanks if undefined) and one of the letters
T text segment symbol
t static text segment symbol
L leaf function text segment symbol
l static leaf function text segment symbol
D data segment symbol
d static data segment symbol
B bss segment symbol
b static bss segment symbol
a automatic (local) variable symbol
p function parameter symbol
z source file name
Z source file line offset
f source file name components
The output is sorted alphabetically.
Options are:
-a Print all symbols; normally only user-defined text, data, and bss segment symbols are printed.
-g Print only global (T, L, D, B) symbols.
-h Do not print file name headers with output lines.
-n Sort according to the address of the symbols.
-s Don't sort; print in symbol-table order.
-u Print only undefined symbols.
SOURCE
/sys/src/cmd/nm.c
SEE ALSO ar(1), 2l(1), db(1), acid(1), a.out(6)NM(1)
Check Out this Related Man Page
NM(1) General Commands Manual NM(1)NAME
nm - print name list (2BSD)
SYNOPSIS
nm [ -gnopru ] [ file ... ]
DESCRIPTION
Nm prints the name list (symbol table) of each object file in the argument list. If an argument is an archive, a listing for each object
file in the archive will be produced. If no file is given, the symbols in "a.out" are listed.
Each symbol name is preceded by its value (blanks if undefined) and one of the letters U (undefined), A (absolute), T (text segment sym-
bol), D (data segment symbol), B (bss segment symbol), C (common symbol), or f file name. If the symbol is local (non-external) the type
letter is in lower case. If the file is an overlaid executable, the overlay number is printed after the name. The number is printed if
the symbol is in an overlay or if it is the entry point (in the base segment) for a subroutine in an overlay. The output is sorted alpha-
betically.
Options are:
-g Print only global (external) symbols.
-n Sort numerically rather than alphabetically.
-o Prepend file or archive element name to each output line rather than only once.
-p Don't sort; print in symbol-table order.
-r Sort in reverse order.
-u Print only undefined symbols.
SEE ALSO ar(1), ar(5), a.out(5), stab(5)3rd Berkeley Distribution April 29, 1985 NM(1)
Hi,
Suppose I have the following text in a file.
ORA-00942: table or view does not exist
ORA-01555: snapshot too old: rollback segment number string with name "string"
too small
Is there any way I can list all the text that starts only with 'ORA-'?
Or there any grep command that can... (7 Replies)
hi guys i have 6000 rows column
the text in the column has the symbol vertical bar |.
i tried some of the commands to remove it but none of the commands are reconzng this symbol. would u plz help to remove this symbol from the text with any kind of unix command
u r help would be appreciated
... (9 Replies)
Hello Forum,
first thanks indvance.
I am trying to read a text file then write it to another file. I am getting these errors:
Global symbol "$line" requires explicit package name at ./trans_pak.pl line 29.
Global symbol "$line" requires explicit package name at ./trans_pak.pl line 31.... (7 Replies)
The symbols are \t and \t\t (note: not tab)
If the line starts with \t merge them into a single line upto symbol \t\t
\t\t to end and start new line
I able to join in a single line but not ending at \t\t and I completely confused
help would be appreciated:b::D
Input
\ta tab XXXXXXXXXX
\te... (5 Replies)
Hi
I am unable to cut a line with the delimeter as a pipe symbol "|"
COuld you please help me ?
below is the code i am using right now
************
for i in `cat xyz`
do
source=`echo $i | cut -f 1 -d |`
echo $source
done
*********
Error i am recieving while exceuting the above... (7 Replies)
Hi,
Whether the following piece of code is placed in the read-only memory of code (text) segment or data segment?
char *a = "Hello";
I am getting two different answers while searching in google :( that's why the confusion is (7 Replies)
Hi guys,
I use AIX version 5 on IBM Power 5+ machine. I am currently trying to experiment with sort of self-modifying code, like this:
ucontext_t ut;
getcontext(&ut);
int iar = ut.uc_mcontext.jmp_context.iar;
int pageSize = getpagesize();
int rest = iar % pageSize;
void *ptr = iar -... (6 Replies)
I have TXT files to process but they contain the degree symbols in them due to which the processing program fails on these files. I want a unix command that will remove the degree symbols from these files.
I tried using the sed command: sed 's///g' filename but it did not work. This issue... (14 Replies)
Hi,
I have to grep value from one file, if that value is already present with "#" symbol. I have to remove that symbol in that file.
Ex:
file1.txt contains the following string
#value=15
I have to search for "Value". If I found the string with hash symbol, nee to remove the # in... (6 Replies)
I am trying to replace '(' and ')' symbol with nul text using tr command. But i am not able to get the expected output . Please help
# cat test.txt
155170816-(75767Mb)
# tr '(' '' < test.txt
155170816-(75767Mb)
# tr ')' '' < test.txt
155170816-(75767Mb)
#
I want the o/p as
... (8 Replies)
I want to replace the whitespace with Pipe symbol to do a multiple pattern matching for the whole text "mysqld failed start" and same as for other text messages Below are the messages stored in a file seperate by whitespace
mysqld failed start
nfsd mount failed
rpcbind failed to start
for... (6 Replies)
I have a text file and each field is separated by semicolon ( ; ). Field number 7 is internally separated by comma ( , ) and pipe ( | ) symbol. I want to sort file based on three different fields which are marked in BOLD.
Here first BOLD field will have numbers upto the length of 9 characters,... (6 Replies)
Hi
Just wondering ... do you have an example of context that would demonstrates how usefull the awk notation can efficiently be used ?
Thx :rolleyes: (6 Replies)
hi All,
i have googled and found that below are the functionality of carat symbol
Meaning of carat is
"at the beginning of line";
"it can also negate matches"
how do i know when carat is behaving as beginning of line or as a negate.
regards,
scriptor (6 Replies)