Don't add DT_NEEDED for references from the dummy bfd
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 16 Feb 2013 17:54:37 +0000 (17:54 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 16 Feb 2013 17:54:37 +0000 (17:54 +0000)
commit3d5bef4c0871514cd0430d5316dfe256329aaa4b
treee0e0e2dc86d9c3ee0306ad74a168b886302b7a90
parent4a2b04a7e5b5cab4c31cfc4a753e6bff6fe0b349
Don't add DT_NEEDED for references from the dummy bfd

bfd/

PR ld/15146
* elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
for references from the dummy bfd.

ld/

PR ld/15146
* plugin.c (plugin_notice): Replace the undefined dummy bfd with
the real one.

ld/testsuite/

PR ld/15146
* ld-plugin/pr15146.d: New file.
* ld-plugin/pr15146a.c: Likewise.
* ld-plugin/pr15146b.c: Likewise.
* ld-plugin/pr15146c.c: Likewise.
* ld-plugin/pr15146d.c: Likewise.

* ld-plugin/lto.exp: Add tests for PR ld/15146.
bfd/ChangeLog
bfd/elflink.c
ld/ChangeLog
ld/plugin.c
ld/testsuite/ChangeLog
ld/testsuite/ld-plugin/lto.exp
ld/testsuite/ld-plugin/pr15146.d [new file with mode: 0644]
ld/testsuite/ld-plugin/pr15146a.c [new file with mode: 0644]
ld/testsuite/ld-plugin/pr15146b.c [new file with mode: 0644]
ld/testsuite/ld-plugin/pr15146d.c [new file with mode: 0644]