From owner-freebsd-stable@FreeBSD.ORG Thu Jan 31 12:16:10 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 0A6DB16A417 for ; Thu, 31 Jan 2008 12:16:10 +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 3BB8413C442 for ; Thu, 31 Jan 2008 12:16:09 +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 230312669-1834499 for multiple; Thu, 31 Jan 2008 07:14:46 -0500 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m0VCFpqZ018988; Thu, 31 Jan 2008 07:15:59 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Bruce M Simpson Date: Thu, 31 Jan 2008 06:11:52 -0500 User-Agent: KMail/1.9.7 References: <479FE898.1030801@incunabulum.net> <200801300904.35750.jhb@freebsd.org> <47A15C62.3020201@incunabulum.net> In-Reply-To: <47A15C62.3020201@incunabulum.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801310611.52552.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, 31 Jan 2008 07:16:00 -0500 (EST) X-Virus-Scanned: ClamAV 0.91.2/5622/Thu Jan 31 06:00:29 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: freebsd-stable@freebsd.org Subject: Re: kldload: Unsupported file type 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, 31 Jan 2008 12:16:10 -0000 On Thursday 31 January 2008 12:28:02 am Bruce M Simpson wrote: > John Baldwin wrote: > >>> It is printed whenever a kernel module is loaded. > >>> The modules load OK. Nothing special or different about them. > >>> > >>> > ... > > The kernel is a link_elf type object I believe, so you have to have it. > > > > > > That follows (I was reading this the other day 'cause we don't support > weak ELF symbols in the kernel for C++) however, why is the message > being triggered now? > > Could it be ET_REL ? > There have been no major changes to linking for the 6.3 buildkernel > target IIRC. > > > BTW only my amd64 system appears to be affected. The problem is that .ko's on amd64 are handled by link_elf_obj.c and not link_elf.c, thus if link_elf.c is first in the list of linker file handlers, then every .ko on amd64 is first going to try link_elf.c which fails and emits the error and then get loaded successfully by link_elf_obj.c. Probably what should happen is that the linker error message should be cached somehow and only print out the last error if the overall load fails. -- John Baldwin