Date: Wed, 12 Jul 2000 20:03:22 -0700 (PDT) From: peter@yahoo-inc.com To: FreeBSD-gnats-submit@freebsd.org Subject: gnu/19882: ld does not detect all undefined symbols! Message-ID: <200007130303.UAA17171@yahoo-inc.com>
next in thread | raw e-mail | index | archive | help
>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 <machine/ipl.h> 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 <machine/ipl.h> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007130303.UAA17171>