Dynamic linking to specific .so versions

Simon Richter Simon.Richter@hogyros.de
Tue Oct 31 17:51:00 GMT 2006


Hi,

Lluís Batlle wrote:

> I'd like to know what is the algorithm of choosing ".so.X", and not
> ".so.X.Y", or ".so". Is that hardcoded and unchangeable in ld? Is that
> Linux-ELF specific? Can that be changed?

The .so object contains a header field that tells ld what to link
against. The symlink ending in .so is used to open the "current"
version, which then contains the name that is used.

   Simon



More information about the Binutils mailing list