From owner-freebsd-stable@FreeBSD.ORG Thu Jan 17 20:41:11 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8309D16A4C7 for ; Thu, 17 Jan 2008 20:41:11 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id 38B4C13C461 for ; Thu, 17 Jan 2008 20:41:11 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8s) with ESMTP id 228870183-1834499 for multiple; Thu, 17 Jan 2008 15:39:18 -0500 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id m0HKegNJ084274; Thu, 17 Jan 2008 15:41:01 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-stable@freebsd.org Date: Thu, 17 Jan 2008 15:28:37 -0500 User-Agent: KMail/1.9.7 References: <200801171410.38488.doconnor@gsoft.com.au> In-Reply-To: <200801171410.38488.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801171528.38186.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Thu, 17 Jan 2008 15:41:01 -0500 (EST) X-Virus-Scanned: ClamAV 0.91.2/5493/Thu Jan 17 13:09:26 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: peter@freebsd.org Subject: Re: kldstat causes kernel to print odd message X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2008 20:41:11 -0000 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