freebsd-skq/contrib/binutils/ld/emultempl
tijl f71e540b0a 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
Exp-run by:	antoine
MFC after:	1 week
2014-08-28 18:33:42 +00:00
..
alphaelf.em
armcoff.em
armelf.em
astring.sed
avrelf.em
cr16elf.em
elf32.em
elf-generic.em
genelf.em
generic.em
ia64elf.em
linux.em
mipsecoff.em
mipself.em
needrelax.em
netbsd.em
ostring.sed
pe.em
pep.em
ppc32elf.em
ppc64elf.em
README
scoreelf.em
spu_ovl.o
spu_ovl.S
spuelf.em
sunos.em
ticoff.em
vanilla.em

The files in this directory are sourced by genscripts.sh, after
setting some variables to substitute in, to produce
C source files that contain jump tables for each emulation.