Skip site navigation (1)Skip section navigation (2)
Date:      	Mon, 26 Oct 1998 19:28:19 -0500
From:      David Holland <dholland@cs.toronto.edu>
To:        garbanzo@hooked.net (Alex Zepeda)
Cc:        jdp@polstra.com, jin@george.lbl.gov, hackers@FreeBSD.ORG
Subject:   Re: ld for loading dynamic library changed in 3.0-RELEASE?
Message-ID:  <98Oct26.192829edt.37768-3361@qew.cs.toronto.edu>
In-Reply-To: <Pine.BSF.4.00.9810231440390.1280-100000@zippy.dyn.ml.org> from "Alex Zepeda" at Oct 23, 98 05:56:29 pm

next in thread | previous in thread | raw e-mail | index | archive | help
 > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98Oct26.192829edt.37768-3361>