From owner-freebsd-bugs Wed Jul 12 20:10: 5 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 72E6D37C15A for ; Wed, 12 Jul 2000 20:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id UAA55194; Wed, 12 Jul 2000 20:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from mrout1.yahoo.com (mrout1.yahoo.com [208.48.125.95]) by hub.freebsd.org (Postfix) with ESMTP id C536B37C0B5 for ; Wed, 12 Jul 2000 20:03:28 -0700 (PDT) (envelope-from peter@yahoo-inc.com) Received: from yahoo-inc.com (daintree.yahoo.com [205.216.162.172]) by mrout1.yahoo.com (8.10.0/8.10.0/y.out) with ESMTP id e6D33M495290 for ; Wed, 12 Jul 2000 20:03:22 -0700 (PDT) Received: (from peter@localhost) by yahoo-inc.com (8.9.3/8.9.3) id UAA17171; Wed, 12 Jul 2000 20:03:22 -0700 (PDT) (envelope-from peter) Message-Id: <200007130303.UAA17171@yahoo-inc.com> Date: Wed, 12 Jul 2000 20:03:22 -0700 (PDT) From: peter@yahoo-inc.com Reply-To: peter@yahoo-inc.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: gnu/19882: ld does not detect all undefined symbols! Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19882 >Category: gnu >Synopsis: ld does not detect all undefined symbols! >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 12 20:10:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Peter Wemm >Release: FreeBSD 5.0-CURRENT i386 >Organization: Not >Environment: Any post 3.0-RELEASE system with a recent binutils. >Description: Certain gas-generated external references to undefined symbols are not noticed by ld. For example: andl $~AST_RESCHED,_astpending If AST_RESCHED is undefined (remove the #include in i386/i386/swtch.s to cause this), then the kernel ends up with: $ nm kernel | grep AST_ U AST_RESCHED >How-To-Repeat: Remove #include from i386/i386/swtch.s, build a kernel. It will compile and end up with an undefined symbol. This was an actual problem in RELENG_4 from May 16th through July 12th. ld(8) did not mention it. The new binutils has a --no-undefined flag, but even that does not detect the undefined symbol. >Fix: Unknown. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message