[Bug 192062] New: ld(1) still links with some libraries implicitly
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jul 23 12:02:09 UTC 2014
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 at FreeBSD.org
Reporter: tijl at 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.
More information about the freebsd-bugs
mailing list