Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jul 2014 12:02:09 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 192062] New: ld(1) still links with some libraries implicitly
Message-ID:  <bug-192062-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192062

            Bug ID: 192062
           Summary: ld(1) still links with some libraries implicitly
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Only Me
          Priority: ---
         Component: gnu
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: tijl@FreeBSD.org

Created attachment 144908
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=144908&action=edit
binutils patch

In http://svnweb.freebsd.org/base?view=revision&revision=253839 the default
behaviour of ld(1) was changed such that all libraries that need to be linked
in have to be mentioned on the command line explicitly.  Due to a bug in ld(1)
there are still cases where dependencies of the libraries mentioned on the
command line can be linked in implicitly.  This happens when a dependency is
found through the ld.so.hints cache and ld(1) forgets to mark the library as a
dependency of another library.  The attached patch fixes this.  The important
bit is the initialisation of needed.by.

The patch is a backport of
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;f=ld/emultempl/elf32.em;h=d5c8b1f8561426b41aa5330ed60f578178fe6be2

The author gave permission to use it under GPLv2 terms.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192062-8>