Invert the meaning of -s, from "don't load symbols" to "load symbols".
Document that this is expensive (and why) in the BUGS section.
This commit is contained in:
parent
d914980ab2
commit
855480012b
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: modload.8,v 1.10 1999/03/10 05:14:51 erh Exp $
|
||||
.\" $NetBSD: modload.8,v 1.11 1999/04/30 18:32:01 ross Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1993 Christopher G. Demetriou
|
||||
.\" All rights reserved.
|
||||
|
@ -25,7 +25,7 @@
|
|||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd June 7, 1993
|
||||
.Dd April 30, 1999
|
||||
.Dt MODLOAD 8
|
||||
.Os NetBSD 0.8a
|
||||
.Sh NAME
|
||||
|
@ -56,7 +56,7 @@ itself.
|
|||
.It Fl v
|
||||
Print comments about the loading process.
|
||||
.It Fl s
|
||||
Suppress loading of the symbol table.
|
||||
Load the symbol table.
|
||||
.It Fl A Ar kernel
|
||||
Specify the file that is passed to the linker
|
||||
to resolve module references to external symbols.
|
||||
|
@ -112,9 +112,15 @@ command was designed to be similar in functionality
|
|||
to the corresponding command in
|
||||
.Tn "SunOS 4.1.3" .
|
||||
.Sh AUTHOR
|
||||
.Bl -tag
|
||||
Terrence R. Lambert, terry@cs.weber.edu
|
||||
.El
|
||||
.Sh BUGS
|
||||
.Bl -bullet
|
||||
.It
|
||||
The loadable device driver framework can
|
||||
only reserve either a character or block device entry, not both.
|
||||
.It
|
||||
Loading the symbol table is expensive in terms of space:
|
||||
it presently duplicates all the kernel symbols for each lkm loaded
|
||||
with
|
||||
.Fl s .
|
||||
.El
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: modload.c,v 1.23 1999/04/23 17:47:02 abs Exp $ */
|
||||
/* $NetBSD: modload.c,v 1.24 1999/04/30 18:32:01 ross Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993 Terrence R. Lambert.
|
||||
|
@ -34,7 +34,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: modload.c,v 1.23 1999/04/23 17:47:02 abs Exp $");
|
||||
__RCSID("$NetBSD: modload.c,v 1.24 1999/04/30 18:32:01 ross Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -87,7 +87,7 @@ int verify_entry __P((char *, char *));
|
|||
|
||||
int debug = 0;
|
||||
int verbose = 0;
|
||||
int symtab = 1;
|
||||
int symtab = 0;
|
||||
|
||||
int
|
||||
linkcmd(kernel, entry, outfile, address, object)
|
||||
|
@ -233,7 +233,7 @@ main(argc, argv)
|
|||
out = optarg;
|
||||
break; /* output file */
|
||||
case 's':
|
||||
symtab = 0;
|
||||
symtab = 1;
|
||||
break;
|
||||
case '?':
|
||||
usage();
|
||||
|
|
Loading…
Reference in New Issue