kldstat causes kernel to print odd message

John Baldwin jhb at freebsd.org
Thu Jan 17 12:41:11 PST 2008


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


More information about the freebsd-stable mailing list