Re: LD Changes To Implicit DSO Linking Update

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

 



On 02/11/2010 07:17 AM, Adam Jackson wrote:
> If your library libfoo uses symbols from libbar but does not
> itself link against libbar, that's still legal (although probably
> impolite).

It is not really correct, it works only by accident in most cases.  If 
the library with is linked with is using symbol versioning it doesn't 
work at all.  The code will likely fail because the used symbol version 
is actually the oldest and not the most recent.

There are only very few special cases when unresolved symbols are 
wanted.  E.g., if you have an app with a plugin system and the plugins 
can use symbols from the executable or other plugins.  Rare and fragile.

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux