Bug 208894

Summary: RTLD gives its own weak symbols preference
Product: Base System Reporter: Lawrence Esswood <le277>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Some People CC: emaste
Priority: --- Keywords: patch
Version: CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
A patch to reverse symbol lookup bias. none

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.