[Bug 208894] RTLD gives its own weak symbols preference

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Apr 18 14:08:21 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208894

            Bug ID: 208894
           Summary: RTLD gives its own weak symbols preference
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: le277 at cam.ac.uk

Created attachment 169434
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=169434&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list