Extend --copy-dt-needed-entries to creating DSO
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 6 Dec 2012 00:25:19 +0000 (00:25 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 6 Dec 2012 00:25:19 +0000 (00:25 +0000)
commit8fbb09e83e588193462a3c488466cb4d1a80ba98
treebef3fb09a0e9c740386776d7ad5f3769b6a4490c
parent5c3ab52b3b9b0c3ff205d5eb0cd3530b315f517c
Extend --copy-dt-needed-entries to creating DSO

ld/

PR ld/14915
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Also
check DT_NEEDED entries when creating shared object with
--copy-dt-needed-entries.

ld/testsuite/

PR ld/14915
* ld-elf/shared.exp (build_tests): Test --add-needed,
--copy-dt-needed-entries, --no-add-needed and
--no-copy-dt-needed-entries with -shared.
Add tests for --no-add-needed and --no-copy-dt-needed-entries
with -shared.
ld/ChangeLog
ld/emultempl/elf32.em
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/shared.exp