From owner-freebsd-current Sun Sep 20 16:40:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA05206 for freebsd-current-outgoing; Sun, 20 Sep 1998 16:40:55 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from yonge.cs.toronto.edu (yonge.cs.toronto.edu [128.100.2.11]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id QAA05200 for ; Sun, 20 Sep 1998 16:40:53 -0700 (PDT) (envelope-from dholland@cs.toronto.edu) Received: from qew.cs.toronto.edu ([128.100.2.15]) by yonge.cs.toronto.edu with SMTP id <86522-12114>; Sun, 20 Sep 1998 19:40:20 -0400 Received: by qew.cs.toronto.edu id <37911-17305>; Sun, 20 Sep 1998 19:40:11 -0400 Subject: Re: ELF ldconfig From: David Holland To: tlambert@primenet.com (Terry Lambert) Date: Sun, 20 Sep 1998 19:40:08 -0400 Cc: dholland@cs.toronto.edu, tlambert@primenet.com, peter@netplex.com.au, jabley@clear.co.nz, freebsd@xaa.iae.nl, freebsd-current@FreeBSD.ORG In-Reply-To: <199809202124.OAA01722@usr04.primenet.com> from "Terry Lambert" at Sep 20, 98 05:24:59 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <98Sep20.194011edt.37911-17305@qew.cs.toronto.edu> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > There's a linker option to use when building libraries that > > eliminates this problem. In my opinion, it should be the default, but > > it's not, because that's not how Solaris does it or some crap like > > that. I can't find in my mail archives the argument I remember having over this, and I also can't find an option that does this in GNU ld's documentation. Grr. (Not that the binutils documentation is probably up to date or anything.) I'm quite sure I remember being told it was possible, though. You can at least make sure that required other libraries get linked by adding them to the link line when building a shared library. I'm going to poke around and see what I can find. > I would be interested in this. I know that FreeBSD's old a.out > linker is architecturally incapable of enforcing symbol existance > at link time so that ld.so doesn't have to, at load time, without > about 40 hours (which I don't have) of hacking. Note that ld.so still has to, in general, because the libraries ld.so sees may not be the same ones that ld saw, and might be lacking the symbols whether or not they were originally present. -- - David A. Holland | (please continue to send non-list mail to dholland@cs.utoronto.ca | dholland@hcs.harvard.edu. yes, I moved.) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message