]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r270757:
authortijl <tijl@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 4 Sep 2014 16:05:12 +0000 (16:05 +0000)
committertijl <tijl@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 4 Sep 2014 16:05:12 +0000 (16:05 +0000)
commitdcfdc5d700c4b9bebe5edf30389d4712fc266ee1
tree4209659de766f77bcd7531836b3d8d62056b4da3
parentd85980b32cd5585dd39f34d460d458f5d6f88dc9
MFC r270757:

In r253839 the default behaviour of ld(1) was changed such that all
libraries that need to be linked into an executable or library have to be
listed on the command line explicitly.  This commit fixes a bug in ld(1)
where it would scan dependencies of the libraries on the command line and
link them if needed if they were also found in ld.so.cache.

The important bit of the patch is the initialisation of needed.by such that
libraries found by scanning dependencies are marked as such and not used in
the link.

The patch is a backport of binutils git commit
d5c8b1f8561426b41aa5330ed60f578178fe6be2

The author gave permission to use it under GPLv2 terms.

PR: 192062

git-svn-id: svn://svn.freebsd.org/base/stable/10@271103 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/binutils/ld/emultempl/elf32.em