Subject: Re: Loading LKMs at boot yields unresolved symbols, but from commandline
To: Quentin Garnier <cube@cubidou.net>
From: Jeff Rizzo <riz@boogers.sf.ca.us>
List: netbsd-users
Date: 03/04/2005 12:25:34
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig54160856DA01A06A121474EA
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
Quentin Garnier wrote:
>
>
>What do people think of this? It has ksyms preferred if -s is passed.
>Jeff, can you try it? Just in case :-)
>
>Index: modload.c
>===================================================================
>RCS file: /cvsroot/src/sbin/modload/modload.c,v
>retrieving revision 1.49
>diff -u -r1.49 modload.c
>--- modload.c 27 Oct 2004 19:36:31 -0000 1.49
>+++ modload.c 4 Mar 2005 20:11:31 -0000
>@@ -357,7 +357,7 @@
> /*
> * Check if /dev/ksyms can be used.
> */
>- if (kname == NULL) {
>+ if (symtab || kname == NULL) {
> int fd = open(_PATH_KSYMS, O_RDONLY);
> if (fd < 0) {
> warn("%s", _PATH_KSYMS);
>
>
>
Yep, that works fine.
+j
--------------enig54160856DA01A06A121474EA
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (Darwin)
iQCVAwUBQijEQrOuUtxCgar5AQI2SAP9GqIyKiIWhUhidmqhX+k9IL/wZjHUrhE4
MTwWZ+YKgkIDObPQTybj7UVLmfKHUlIubQWJgfRQ99DVjtJHSB42WK7GeGt+6e69
wGPQRqEmQXPg8aD1vmHaVi4TbC0UV2A5deGJwPhJdi8jBRxViVbua17XtIEw68IW
W+ZGORqqDkM=
=Do7o
-----END PGP SIGNATURE-----
--------------enig54160856DA01A06A121474EA--