Revert rev 1.3. While that change appears to make the behaviour similar to
authorkettenis <kettenis@openbsd.org>
Tue, 12 May 2015 21:05:42 +0000 (21:05 +0000)
committerkettenis <kettenis@openbsd.org>
Tue, 12 May 2015 21:05:42 +0000 (21:05 +0000)
commit105c77736e0cb4456fcd1721512a57770bc49c8f
tree345874ebfad735a4b2dc38881e3f060a264e64d0
parent9a39b166e45206f985fb015f90a387e6545f07ce
Revert rev 1.3.  While that change appears to make the behaviour similar to
binutils 2.15, it introduces bogus failures when inter-library dependencies
are present.

With the binutils 2.17 behaviour restored, --as-needed will cause linker
failures when necessary inter-library dependencies are not present.  This is
actually a good thing as binutils 2.15 will silently produce executables
that will fail at runtime in those cases.

ok miod@
gnu/usr.bin/binutils-2.17/bfd/elflink.c