Print this page
4023 - Typo in file(1) manpage and various others
   1 '\" te
   2 .\" Copyright 1989 AT&T
   3 .\" Copyright (c) 2007, Sun Microsystems, Inc.  All Rights Reserved
   4 .\" Portions Copyright (c) 1992, X/Open Company Limited  All Rights Reserved
   5 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
   6 .\" http://www.opengroup.org/bookstore/.
   7 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
   8 .\"  This notice shall appear on any product containing this material.
   9 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
  10 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
  11 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
  12 .TH NM 1 "Oct 10, 2007"
  13 .SH NAME
  14 nm \- print name list of an object file
  15 .SH SYNOPSIS
  16 .LP
  17 .nf
  18 \fB/usr/bin/nm\fR [\fB-ACDhlnPprRsTuVv\fR] [\fB-efox\fR] [\fB-g\fR | \fB-u\fR]
  19      [\fB-t\fR \fIformat\fR] \fIfile\fR...
  20 .fi
  21 
  22 .LP
  23 .nf
  24 \fB/usr/xpg4/bin/nm\fR [\fB-ACDhlnPprRsTuVv\fR] [\fB-efox\fR] [\fB-g\fR | \fB-u\fR]
  25      [\fB-t\fR \fIformat\fR] \fIfile\fR...
  26 .fi
  27 
  28 .SH DESCRIPTION
  29 .sp
  30 .LP
  31 The \fBnm\fR utility displays the symbol table of each \fBELF\fR object file
  32 that is specified by \fIfile\fR.


 674 
 675 .sp
 676 .ne 2
 677 .na
 678 \fB\fBObject Name\fR\fR
 679 .ad
 680 .RS 15n
 681 The name of the object or library if \fB-A\fR is specified.
 682 .RE
 683 
 684 .sp
 685 .LP
 686 If the \fB-P\fR option is specified, the previous information is displayed
 687 using the following portable format. The three versions differ depending on
 688 whether \fB-t\fR \fBd\fR, \fB-t\fR \fBo\fR, or \fB-t\fR \fBx\fR was specified,
 689 respectively:
 690 .sp
 691 .in +2
 692 .nf
 693 \fB"%s%s %s %d %d\n",\fR \fIlibrary/object name\fR, \fIname\fR\fB, type,\fR \fIvalue\fR, \e
 694      \fBsize "%s%s %s %o %o\n",\fR \fIlibrary/object name\fR, \fIname\fR, \e
 695      \fBtype,\fR \fIvalue\fR \fB, size "%s%s %s %x %x\n",\fR \fIlibrary/object name\fR, \fIname\fR, \e
 696      \fBtype,\fR \fIvalue\fR\fB, size\fR
 697 .fi
 698 .in -2
 699 .sp
 700 
 701 .sp
 702 .LP
 703 where \fIlibrary/object name\fR is formatted as follows:
 704 .RS +4
 705 .TP
 706 .ie t \(bu
 707 .el o
 708 If \fB-A\fR is not specified, \fIlibrary/object name\fR is an empty string.
 709 .RE
 710 .RS +4
 711 .TP
 712 .ie t \(bu
 713 .el o
 714 If \fB-A\fR is specified and the corresponding \fIfile\fR operand does not name
 715 a library:


 735 \fB"%s[%s]: ", \fIfile\fR, \fIobject file\fR\fR
 736 .fi
 737 .in -2
 738 .sp
 739 
 740 .RE
 741 .sp
 742 .LP
 743 If \fB-A\fR is not specified, then if more than one \fIfile\fR operand is
 744 specified or if only one \fIfile\fR operand is specified and it names a
 745 library, \fBnm\fR writes a line identifying the object containing the following
 746 symbols before the lines containing those symbols, in the form:
 747 .RS +4
 748 .TP
 749 .ie t \(bu
 750 .el o
 751 If the corresponding \fIfile\fR operand does not name a library:
 752 .sp
 753 .in +2
 754 .nf
 755 \fB"%s:\n", \fIfile\fR\fR
 756 .fi
 757 .in -2
 758 .sp
 759 
 760 .RE
 761 .RS +4
 762 .TP
 763 .ie t \(bu
 764 .el o
 765 If the corresponding \fIfile\fR operand names a library; in this case,
 766 \fIobject file\fR is the name of the file in the library containing the
 767 following symbols:
 768 .sp
 769 .in +2
 770 .nf
 771 \fB"%s[%s]:\n", \fIfile\fR, \fIobject file\fR\fR
 772 .fi
 773 .in -2
 774 .sp
 775 
 776 .RE
 777 .sp
 778 .LP
 779 If \fB-P\fR is specified, but \fB-t\fR is not, the format is as if \fB-t\fR
 780 \fBx\fR had been specified.
 781 .SH ENVIRONMENT VARIABLES
 782 .sp
 783 .LP
 784 See \fBenviron\fR(5) for descriptions of the following environment variables
 785 that affect the execution of \fBnm\fR: \fBLANG\fR, \fBLC_ALL\fR,
 786 \fBLC_COLLATE\fR, \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, and \fBNLSPATH\fR.
 787 .SH EXIT STATUS
 788 .sp
 789 .LP
 790 The following exit values are returned:
 791 .sp


   1 '\" te
   2 .\" Copyright 1989 AT&T
   3 .\" Copyright (c) 2007, Sun Microsystems, Inc.  All Rights Reserved
   4 .\" Portions Copyright (c) 1992, X/Open Company Limited  All Rights Reserved
   5 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
   6 .\" http://www.opengroup.org/bookstore/.
   7 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
   8 .\"  This notice shall appear on any product containing this material.
   9 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
  10 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
  11 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
  12 .TH NM 1 "Sep 10, 2013"
  13 .SH NAME
  14 nm \- print name list of an object file
  15 .SH SYNOPSIS
  16 .LP
  17 .nf
  18 \fB/usr/bin/nm\fR [\fB-ACDhlnPprRsTuVv\fR] [\fB-efox\fR] [\fB-g\fR | \fB-u\fR]
  19      [\fB-t\fR \fIformat\fR] \fIfile\fR...
  20 .fi
  21 
  22 .LP
  23 .nf
  24 \fB/usr/xpg4/bin/nm\fR [\fB-ACDhlnPprRsTuVv\fR] [\fB-efox\fR] [\fB-g\fR | \fB-u\fR]
  25      [\fB-t\fR \fIformat\fR] \fIfile\fR...
  26 .fi
  27 
  28 .SH DESCRIPTION
  29 .sp
  30 .LP
  31 The \fBnm\fR utility displays the symbol table of each \fBELF\fR object file
  32 that is specified by \fIfile\fR.


 674 
 675 .sp
 676 .ne 2
 677 .na
 678 \fB\fBObject Name\fR\fR
 679 .ad
 680 .RS 15n
 681 The name of the object or library if \fB-A\fR is specified.
 682 .RE
 683 
 684 .sp
 685 .LP
 686 If the \fB-P\fR option is specified, the previous information is displayed
 687 using the following portable format. The three versions differ depending on
 688 whether \fB-t\fR \fBd\fR, \fB-t\fR \fBo\fR, or \fB-t\fR \fBx\fR was specified,
 689 respectively:
 690 .sp
 691 .in +2
 692 .nf
 693 \fB"%s%s %s %d %d\n",\fR \fIlibrary/object name\fR, \fIname\fR\fB, type,\fR \fIvalue\fR, \e
 694      \fBsize "%s%s %s %o %o\en",\fR \fIlibrary/object name\fR, \fIname\fR, \e
 695      \fBtype,\fR \fIvalue\fR \fB, size "%s%s %s %x %x\en",\fR \fIlibrary/object name\fR, \fIname\fR, \e
 696      \fBtype,\fR \fIvalue\fR\fB, size\fR
 697 .fi
 698 .in -2
 699 .sp
 700 
 701 .sp
 702 .LP
 703 where \fIlibrary/object name\fR is formatted as follows:
 704 .RS +4
 705 .TP
 706 .ie t \(bu
 707 .el o
 708 If \fB-A\fR is not specified, \fIlibrary/object name\fR is an empty string.
 709 .RE
 710 .RS +4
 711 .TP
 712 .ie t \(bu
 713 .el o
 714 If \fB-A\fR is specified and the corresponding \fIfile\fR operand does not name
 715 a library:


 735 \fB"%s[%s]: ", \fIfile\fR, \fIobject file\fR\fR
 736 .fi
 737 .in -2
 738 .sp
 739 
 740 .RE
 741 .sp
 742 .LP
 743 If \fB-A\fR is not specified, then if more than one \fIfile\fR operand is
 744 specified or if only one \fIfile\fR operand is specified and it names a
 745 library, \fBnm\fR writes a line identifying the object containing the following
 746 symbols before the lines containing those symbols, in the form:
 747 .RS +4
 748 .TP
 749 .ie t \(bu
 750 .el o
 751 If the corresponding \fIfile\fR operand does not name a library:
 752 .sp
 753 .in +2
 754 .nf
 755 \fB"%s:\en", \fIfile\fR\fR
 756 .fi
 757 .in -2
 758 .sp
 759 
 760 .RE
 761 .RS +4
 762 .TP
 763 .ie t \(bu
 764 .el o
 765 If the corresponding \fIfile\fR operand names a library; in this case,
 766 \fIobject file\fR is the name of the file in the library containing the
 767 following symbols:
 768 .sp
 769 .in +2
 770 .nf
 771 \fB"%s[%s]:\en", \fIfile\fR, \fIobject file\fR\fR
 772 .fi
 773 .in -2
 774 .sp
 775 
 776 .RE
 777 .sp
 778 .LP
 779 If \fB-P\fR is specified, but \fB-t\fR is not, the format is as if \fB-t\fR
 780 \fBx\fR had been specified.
 781 .SH ENVIRONMENT VARIABLES
 782 .sp
 783 .LP
 784 See \fBenviron\fR(5) for descriptions of the following environment variables
 785 that affect the execution of \fBnm\fR: \fBLANG\fR, \fBLC_ALL\fR,
 786 \fBLC_COLLATE\fR, \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, and \fBNLSPATH\fR.
 787 .SH EXIT STATUS
 788 .sp
 789 .LP
 790 The following exit values are returned:
 791 .sp