Properly mark the plugin symbol undefined
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 6 Feb 2015 12:25:36 +0000 (04:25 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 6 Feb 2015 12:29:35 +0000 (04:29 -0800)
commit9e2dec471006de3e0489a34fbeb922fee1e302af
tree7ab3bd6dbab46c47b980a09d16592ea6b12326ea
parente584fdbc6a9b0da786c5a55855f9fd9f7e676198
Properly mark the plugin symbol undefined

Mark the unused plugin defined symbol in elf_link_input_bfd instead of
_bfd_elf_fix_symbol_flags.  Limit the PR ld/12365 test to x86 targets.

bfd/

PR ld/12365
PR ld/14272
* elflink.c (_bfd_elf_fix_symbol_flags): Revert the last change.
(elf_link_input_bfd): Mark the plugin symbol undefined if it is
referenced from a non-IR file.

ld/testsuite/

PR ld/12365
PR ld/14272
* ld-plugin/lto.exp: Run the PR ld/12365 test only for x86 targets.
* ld-plugin/plugin-7.d: Updated.
* ld-plugin/plugin-8.d: Likewise.
bfd/ChangeLog
bfd/elflink.c
ld/testsuite/ChangeLog
ld/testsuite/ld-plugin/lto.exp
ld/testsuite/ld-plugin/plugin-7.d
ld/testsuite/ld-plugin/plugin-8.d