summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-10-27 23:51:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-10-27 23:51:22 +0000
commitdd2db7d420795f53a61ffd83ba774861d93ca0eb (patch)
treea4767854de2127bc62fca90cbba849c338152f81
parent171d10630e5a923439311fe95dfdfe924828a314 (diff)
nm -V is silly, and prining the rcsid even more so
-rw-r--r--usr.bin/nm/nm.18
-rw-r--r--usr.bin/nm/nm.c21
2 files changed, 6 insertions, 23 deletions
diff --git a/usr.bin/nm/nm.1 b/usr.bin/nm/nm.1
index f690a7507e6..c1eccff39bd 100644
--- a/usr.bin/nm/nm.1
+++ b/usr.bin/nm/nm.1
@@ -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,
diff --git a/usr.bin/nm/nm.c b/usr.bin/nm/nm.c
index bb53c435486..df77bcde6c4 100644
--- a/usr.bin/nm/nm.c
+++ b/usr.bin/nm/nm.c
@@ -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);
}