Bug 208894 - RTLD gives its own weak symbols preference
Summary: RTLD gives its own weak symbols preference
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2016-04-18 14:08 UTC by Lawrence Esswood
Modified: 2016-12-01 03:56 UTC (History)
1 user (show)

See Also:


Attachments
A patch to reverse symbol lookup bias. (482 bytes, patch)
2016-04-18 14:08 UTC, Lawrence Esswood
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lawrence Esswood 2016-04-18 14:08:21 UTC
Created attachment 169434 [details]
A patch to reverse symbol lookup bias.

If RTLD finds a weak symbol in both its own object and another library, it will give its own symbol preference. This can cause problems with the weak pthread stubs defined in libc being used over those in libthr.

I'm not sure if this is expected behavior, but it makes more sense to me to reverse this bias.