PR 17287, DT_NEEDED of unneeded libraries affects --as-needed
authorAlan Modra <amodra@gmail.com>
Mon, 18 Aug 2014 05:13:03 +0000 (14:43 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 18 Aug 2014 09:15:01 +0000 (18:45 +0930)
commit1240be6b7d0a5604c4e3efe12c9e1d08ebc246be
treea7f1bcd457894415ab539567c164dc1a93d09b1e
parent759388538d1339f6a634b2777e24f46427dd9c96
PR 17287, DT_NEEDED of unneeded libraries affects --as-needed

PR 17287
bfd/
* elflink.c (on_needed_list): Only consider libraries that have
been loaded.
ld/
* ld.texinfo (--as-needed): Clarify that references from libraries
must be from needed libraries.
ld/testsuite/
* ld-plugin/needed3.c: New file.
* ld-elf/shared.exp: Add needed3 test.
bfd/ChangeLog
bfd/elflink.c
ld/ChangeLog
ld/ld.texinfo
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/needed3.c [new file with mode: 0644]
ld/testsuite/ld-elf/shared.exp