Dynamic linking to specific .so versions
Tue Oct 31 17:51:00 GMT 2006
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.
More information about the Binutils