Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Oct 1995 05:07:50 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        ache@astral.msk.su, current@freebsd.org
Subject:   Re: procfs LKM broken now!
Message-ID:  <199510071907.FAA00629@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>It calls _divdi3 function (procfs_vnops.c) and fail to load,
>because can't find it. Also libkern have such function, it seems
>that procfs_vnops.c is only file which call it, so, it isn't
>picked from libkern to kernel.
>Workaround is to add 'options PROCFS' to kernel config file.
>In this case _divdi3 picked from libkern.

This shows that a kernel library shouldn't be used if there are
lkm's.  The whole point of the library is to avoid linking to
unused functions, but lkms might use anything in the library
and this use is not detected when the kernel is linked.

Also, when individual .o's are used instead of a library, the
list of .o's must be bloated to include everything that an lkm
might need.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510071907.FAA00629>