This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Dynamic linking to specific .so versions
- From: Brian Dessent <brian at dessent dot net>
- To: Lluís Batlle <viriketo at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 31 Oct 2006 09:27:21 -0800
- Subject: Re: Dynamic linking to specific .so versions
- References: <45219fb00610310907t57a2a14vaa26911651ca4671@mail.gmail.com>
- Reply-to: binutils at sourceware dot org
Lluís Batlle wrote:
> I've noticed that "ld" doesn't link the final ELF to the ".so"
> library, but to the ".so.X", where X is a number. At least in my Linux
> ELF system.
If it just recorded the name as .so it would render shared library
versioning completely useless. You'd have to recompile every single
package in the distro that links to a given library whenever it made an
ABI change. The whole point is that the binary links to a given ABI
version of a library, so that you can have multiple incompatible
versions present.
Brian