[HEADS UP] Kernel modules don't work properly in FreeBSD 8.1-RC1
faber at isi.edu
Wed Jun 23 04:07:01 UTC 2010
On Wed, Jun 23, 2010 at 02:38:06AM +0200, Hans Petter Selasky wrote:
> It appears many kmods are broken because the linker is stripping away static
> data declared with the section attribute in FreeBSD 8.1-RC1.
> I added those lines to the LDFLAGS in Makefile.kmod in the cuse4bsd port
> made the module and the result loads and creates the /dev/cuse file.
I'm the fellow in Hans's <cite>...</cite>.
If someone's looking into this, it's worth mentioning that the sample
cdev kmodule in /usr/share/examples/kld/cdev/ also exhibits the
behavior. On my 8.1-PRERELEASE system that module does not create the
/dev/cedv device, but if you add the line
LDFLAGS += -u __start_set_sysinit_set -u __start_set_sysuninit_set \
-u __start_set_sysctl_set -u __start_set_modmetadata_set \
-u __stop_set_sysinit_set -u __stop_set_sysuninit_set \
-u __stop_set_sysctl_set -u __stop_set_modmetadata_set
right before the
in /usr/share/examples/kld/cdev/module/Makefile and remake everything,
the module creates the /dev/cdev file when it's loaded.
That magical line was suggested by Ryan Stone in another thread:
Happy hunting, and I'm happy to test patches or provide more information.
http://www.isi.edu/~faber PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20100623/0690f268/attachment.pgp
More information about the freebsd-current