Date: Thu, 17 Jan 2008 15:28:37 -0500 From: John Baldwin <jhb@freebsd.org> To: freebsd-stable@freebsd.org Cc: peter@freebsd.org Subject: Re: kldstat causes kernel to print odd message Message-ID: <200801171528.38186.jhb@freebsd.org> In-Reply-To: <200801171410.38488.doconnor@gsoft.com.au> References: <200801171410.38488.doconnor@gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 16 January 2008 10:40:25 pm Daniel O'Connor wrote: > Hi, > I have built my own release of 6.3 (slightly older than 6.3 as tagged) > and I am seeing an odd cosmetic problem. Whenever I kldload a module > (stuff loaded by the loader doesn't do it) I get this in dmesg.. > kldload: Unsupported file type > > The actual module works fine though (shows up in kldstat etc) > Can anyone explain what the underlying problem is? (I am guessing some > ordering issue where normally elf64_obj is called first so the other is > normally never called..) > > Thanks. amd64 uses link_elf_obj.c, all the other archs use link_elf.c, hence the duplication. link_elf.c is used to load kld's that are ELF shared objects (i.e. foo.so) where as link_elf_obj.c is used to load kld's that are ELF objects (i.e. foo.o). I think you are going to get this everytime you do a kldload on amd64 because it will always try link_elf.c first due to compile order (MI files are ordered in the makefile before MD ones), emit the warning, and then try link_elf_obj.c. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801171528.38186.jhb>