This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Dynamic linking to specific .so versions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]