From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 21 09:11:00 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9398F37B401 for ; Mon, 21 Jul 2003 09:11:00 -0700 (PDT) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DD5143FAF for ; Mon, 21 Jul 2003 09:11:00 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.9/8.12.6) with ESMTP id h6LGAxVI026806; Mon, 21 Jul 2003 09:11:00 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.9/8.12.6/Submit) id h6LGAxpk026805; Mon, 21 Jul 2003 09:10:59 -0700 (PDT) Date: Mon, 21 Jul 2003 09:10:59 -0700 (PDT) From: Matthew Dillon Message-Id: <200307211610.h6LGAxpk026805@apollo.backplane.com> To: Peter Wemm References: <20030721055404.6EEB72A7EA@canning.wemm.org> cc: hackers@freebsd.org Subject: Re: Possible issue with in-kernel ELF loader. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2003 16:11:01 -0000 :> It turns out that the kernel's internal ELF loader is misinterpreting :> an ABS symbol (i.e. set with .SET in assembly) whos value is 0 as being :> 'not found', and once that is fixed it was also confusing the absolute :> symbol with a COMMON symbol. : :Thanks for the pointer. FWIW, We use -fno-common on 5.x to avoid common :symbols even existing in the first place. There were a few missing :externs that this turned up. : :Cheers, :-Peter :-- :Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com Hmm. Though you seem to override it for the linux and svr4 modules. It's a little too hackish for my tastes but I'll keep it in mind. There's something to be said for being able to clean up those kinds of declarations. -Matt Matthew Dillon