Re: Shared librares dependency at compile time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 27, 2012 at 12:56 PM, LiLy <xmlymt@xxxxxxxxxxx> wrote:
>
> Glad to get your confirmations. Further more, could you please give me some links that introduce ld internals?

I'm fond of http://www.airs.com/blog/archives/38 and subsequent entries.

> BTW, I guess gold means google ld. Regarding 1.1), I suppose gold will also work in similar way, since the obj/lib file formats are same.

gold isn't google ld, it's just gold.  it's a new linker that is part
of the GNU binutils.

There is a key difference between GNU ld and gold in this area.  If
you link against liba.so, and liba.so has a DT_NEEDED entry pointing
to libb.so, then GNU ld will attempt to replicate the dynamic linker's
search path and find libb.so.  gold will not do that.  Because of
that, GNU ld by default will warn about undefined symbols in liba.so,
while gold by default will not.

It is quite rare for this difference to actually matter.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux