From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 20 22:54:05 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 4B33637B401 for ; Sun, 20 Jul 2003 22:54:05 -0700 (PDT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA71243F75 for ; Sun, 20 Jul 2003 22:54:04 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id 6EEB72A7EA; Sun, 20 Jul 2003 22:54:04 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Matthew Dillon In-Reply-To: <200307180511.h6I5B5HV004858@apollo.backplane.com> Date: Sun, 20 Jul 2003 22:54:04 -0700 From: Peter Wemm Message-Id: <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 05:54:05 -0000 Matthew Dillon wrote: > I got an odd bug report for DragonFly today. Apparently the module loader > was broken, the kernel complained about not being able to find > 'globaldata'. > > 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 "All of this is for nothing if we don't go to the stars" - JMS/B5