From owner-freebsd-hackers Fri Oct 23 14:26:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA12367 for freebsd-hackers-outgoing; Fri, 23 Oct 1998 14:26:05 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA12357 for ; Fri, 23 Oct 1998 14:26:02 -0700 (PDT) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.9.1/8.9.1) id HAA11763; Sat, 24 Oct 1998 07:30:04 +1000 (EST) (envelope-from jb) From: John Birrell Message-Id: <199810232130.HAA11763@cimlogic.com.au> Subject: Re: ld for loading dynamic library changed in 3.0-RELEASE? In-Reply-To: <199810232100.OAA08835@portnoy.lbl.gov> from Jin Guojun at "Oct 23, 98 02:00:37 pm" To: jin@portnoy.lbl.gov (Jin Guojun) Date: Sat, 24 Oct 1998 07:30:04 +1000 (EST) Cc: jdp@polstra.com, hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jin Guojun wrote: > The ld works exactly as other platforms, like Solaris (ELF), SunOS4 (not ELF), > FreeBSD 2.x (aout), without such a problem. If you argue this is aout bug, > I think the idea is wrong. All ELF system as I know, such as Solaris, Linux, > work are same as non-ELF system, except FreeBSD 3.0. Therefore, it is > FreeBSD 3.0 elf problem. Unless you believe every body else is wrong. I notice different behaviour between FreeBSD 3.0-ELF and Digital Unix. The binutils ld reports unresolved and possibly unreferenced symbols at link time. I think this is the "bug" you are complaining about. On Digital Unix, the linker doesn't report the unreferenced, unresolved symbols, but the run-time linker _does_. I find that annoying. If there is a way of configuring binutils (without hacking the sources) to get behaviour that is "consistent" with other systems, we can consider that. IMHO, hacking the binutils sources so that ld behaves differently from what the binutils programmers intended will just leave us in the same position we ended up with the old tools - out in the cold. -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message