From owner-freebsd-hackers Mon Oct 26 16:29:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA14291 for freebsd-hackers-outgoing; Mon, 26 Oct 1998 16:29:29 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from yonge.cs.toronto.edu (yonge.cs.toronto.edu [128.100.1.8]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id QAA14278 for ; Mon, 26 Oct 1998 16:29:26 -0800 (PST) (envelope-from dholland@cs.toronto.edu) Received: from qew.cs.toronto.edu ([128.100.1.13]) by yonge.cs.toronto.edu with SMTP id <86461-6609>; Mon, 26 Oct 1998 19:28:42 -0500 Received: by qew.cs.toronto.edu id <37768-3361>; Mon, 26 Oct 1998 19:28:29 -0500 Subject: Re: ld for loading dynamic library changed in 3.0-RELEASE? From: David Holland To: garbanzo@hooked.net (Alex Zepeda) Date: Mon, 26 Oct 1998 19:28:19 -0500 Cc: jdp@polstra.com, jin@george.lbl.gov, hackers@FreeBSD.ORG In-Reply-To: from "Alex Zepeda" at Oct 23, 98 05:56:29 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: <98Oct26.192829edt.37768-3361@qew.cs.toronto.edu> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On that note one thing I've noticed is that the ELF ld refuses to > recognize shared libs unless they end in .so. What would the chances be > of having it check for libfoo.so.x where x is the greatest value (assuming > libfoo.so doesn't exist)? This is rather annoying, as the a.out ld > doesn't do this, and the Linux ld apparently doesn't do this, and that > covers quite a lot of software one might want to compile. mico is a prime > example. The Linux ld (has has been noted already) is the same as the freebsd one. It also requires that you have a *.so filename present. The reason is that ELF does not enforce any semantics on the SONAME of a library, so it's perfectly legitimate to have a libfoo.so.5-pizza-6. Now, if you have libfoo.so.5-pizza-6 and libfoo.so.5-sushi-3, how is ld supposed to guess which one is the "greatest" value? -- - 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-hackers" in the body of the message