[PATCH] PR ld/20267: Use the IR symbol table for the IR input object
Joel Brobecker
brobecker@adacore.com
Fri Jun 24 17:08:00 GMT 2016
> PR ld/18250
> PR ld/20267
> * elflink.c: Include plugin.h if BFD_SUPPORTS_PLUGINS is
> defined.
> (elf_link_is_defined_archive_symbol): Call
> bfd_link_plugin_object_p on unknown plugin object and use the
> IR symbol table if the input is an IR object.
> * plugin.c (bfd_link_plugin_object_p): New function.
> * plugin.h (bfd_link_plugin_object_p): New prototype.
>
> ld/
>
> PR ld/20267
> * testsuite/ld-plugin/lto.exp (lto_link_tests): Add test for
> PR ld/20267.
> (lto_run_tests): Likewise.
> * testsuite/ld-plugin/pr20267a.c: New file.
> * testsuite/ld-plugin/pr20267b.c: Likewise.
I believe this patch caused the GDB build to fail when configuration
without plugin support.
Attached is the patch I pushed as obvious to fix the issue.
bfd/ChangeLog:
* elflink.c: Check the value of BFD_SUPPORTS_PLUGINS rather
than its existance.
Tested on x86_64-linux.
--
Joel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix-undefined-reference-to-bfd_link_plugin_object_p-.patch
Type: text/x-diff
Size: 1562 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20160624/62d30640/attachment.bin>
More information about the Binutils
mailing list