mirror of
https://github.com/openbsd/src.git
synced 2025-01-03 06:45:37 -08:00
nm -V is silly, and prining the rcsid even more so
This commit is contained in:
parent
fc45355810
commit
ae697d98f3
@ -1,4 +1,4 @@
|
||||
.\" $OpenBSD: nm.1,v 1.21 2009/02/10 19:27:03 jmc Exp $
|
||||
.\" $OpenBSD: nm.1,v 1.22 2009/10/27 23:51:21 deraadt Exp $
|
||||
.\" $NetBSD: nm.1,v 1.3 1995/08/31 23:41:58 jtc Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1990, 1993
|
||||
@ -30,7 +30,7 @@
|
||||
.\"
|
||||
.\" @(#)nm.1 8.1 (Berkeley) 6/6/93
|
||||
.\"
|
||||
.Dd $Mdocdate: February 10 2009 $
|
||||
.Dd $Mdocdate: October 27 2009 $
|
||||
.Dt NM 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -38,7 +38,7 @@
|
||||
.Nd display name list (symbol table)
|
||||
.Sh SYNOPSIS
|
||||
.Nm nm
|
||||
.Op Fl aCegnoprsuVw
|
||||
.Op Fl aCegnoprsuw
|
||||
.Op Ar
|
||||
.Sh DESCRIPTION
|
||||
The symbol table (name list) of each object in
|
||||
@ -80,8 +80,6 @@ Reverse order sort.
|
||||
Show archive index.
|
||||
.It Fl u
|
||||
Display undefined symbols only.
|
||||
.It Fl V
|
||||
Show program version.
|
||||
.It Fl w
|
||||
Warn about non-object archive members.
|
||||
Normally,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: nm.c,v 1.31 2007/09/02 15:19:33 deraadt Exp $ */
|
||||
/* $OpenBSD: nm.c,v 1.32 2009/10/27 23:51:21 deraadt Exp $ */
|
||||
/* $NetBSD: nm.c,v 1.7 1996/01/14 23:04:03 pk Exp $ */
|
||||
|
||||
/*
|
||||
@ -33,17 +33,6 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static const char copyright[] =
|
||||
"@(#) Copyright (c) 1989, 1993\n\
|
||||
The Regents of the University of California. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#if 0
|
||||
static const char sccsid[] = "@(#)nm.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
static const char rcsid[] = "$OpenBSD: nm.c,v 1.31 2007/09/02 15:19:33 deraadt Exp $";
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/mman.h>
|
||||
#include <a.out.h>
|
||||
@ -124,7 +113,7 @@ int show_archive(int, const char *, FILE *);
|
||||
int show_file(int, int, const char *, FILE *fp, off_t, union hdr *);
|
||||
void print_symbol(const char *, struct nlist *, int);
|
||||
|
||||
#define OPTSTRING_NM "aABCegnoprsuvVw"
|
||||
#define OPTSTRING_NM "aABCegnoprsuvw"
|
||||
const struct option longopts_nm[] = {
|
||||
{ "debug-syms", no_argument, 0, 'a' },
|
||||
{ "demangle", no_argument, 0, 'C' },
|
||||
@ -138,7 +127,6 @@ const struct option longopts_nm[] = {
|
||||
{ "reverse-sort", no_argument, 0, 'r' },
|
||||
/* { "size-sort", no_argument, &szval, 1 }, */
|
||||
{ "undefined-only", no_argument, 0, 'u' },
|
||||
{ "version", no_argument, 0, 'V' },
|
||||
{ "help", no_argument, 0, '?' },
|
||||
{ NULL }
|
||||
};
|
||||
@ -202,9 +190,6 @@ main(int argc, char *argv[])
|
||||
case 'u':
|
||||
print_only_undefined_symbols = 1;
|
||||
break;
|
||||
case 'V':
|
||||
fprintf(stderr, "%s\n", rcsid);
|
||||
exit(0);
|
||||
case 'w':
|
||||
non_object_warning = 1;
|
||||
break;
|
||||
@ -1081,7 +1066,7 @@ usage(void)
|
||||
if (issize)
|
||||
fprintf(stderr, "usage: %s [-tw] [file ...]\n", __progname);
|
||||
else
|
||||
fprintf(stderr, "usage: %s [-aCegnoprsuVw] [file ...]\n",
|
||||
fprintf(stderr, "usage: %s [-aCegnoprsuw] [file ...]\n",
|
||||
__progname);
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user