Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/modload Invert the meaning of -s, from "don't load symb...



details:   https://anonhg.NetBSD.org/src/rev/8f5db39687eb
branches:  trunk
changeset: 472501:8f5db39687eb
user:      ross <ross%NetBSD.org@localhost>
date:      Fri Apr 30 18:32:01 1999 +0000

description:
Invert the meaning of -s, from "don't load symbols" to "load symbols".
Document that this is expensive (and why) in the BUGS section.

diffstat:

 sbin/modload/modload.8 |  16 +++++++++++-----
 sbin/modload/modload.c |   8 ++++----
 2 files changed, 15 insertions(+), 9 deletions(-)

diffs (81 lines):

diff -r 53cfc32658e6 -r 8f5db39687eb sbin/modload/modload.8
--- a/sbin/modload/modload.8    Fri Apr 30 18:29:16 1999 +0000
+++ b/sbin/modload/modload.8    Fri Apr 30 18:32:01 1999 +0000
@@ -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 @@
 .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 @@
 to the corresponding command in
 .Tn "SunOS 4.1.3" .
 .Sh AUTHOR
-.Bl -tag
 Terrence R. Lambert, terry%cs.weber.edu@localhost
-.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
diff -r 53cfc32658e6 -r 8f5db39687eb sbin/modload/modload.c
--- a/sbin/modload/modload.c    Fri Apr 30 18:29:16 1999 +0000
+++ b/sbin/modload/modload.c    Fri Apr 30 18:32:01 1999 +0000
@@ -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 debug = 0;
 int verbose = 0;
-int symtab = 1;
+int symtab = 0;
 
 int
 linkcmd(kernel, entry, outfile, address, object)
@@ -233,7 +233,7 @@
                        out = optarg;
                        break;  /* output file */
                case 's':
-                       symtab = 0;
+                       symtab = 1;
                        break;
                case '?':
                        usage();



Home | Main Index | Thread Index | Old Index