This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/42757] lto1 does not emit common symbols with -fuse-linker-plugin
- From: "ccoutant at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Mar 2010 23:40:28 -0000
- Subject: [Bug lto/42757] lto1 does not emit common symbols with -fuse-linker-plugin
- References: <bug-42757-16926@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from ccoutant at gcc dot gnu dot org 2010-03-31 23:40 -------
Created an attachment (id=20267)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20267&action=view)
Gold patch to fix common symbol handling
This gold patch ought to fix the problem. Please verify and I'll send it
upstream to binutils.
* plugin.cc (Pluginobj::get_symbol_resolution_info): Check for
prevailing definitions of common symbols.
* testsuite/plugin_test_6.sh: New testcase.
* testsuite/plugin_common_test_1.c: New testcase.
* testsuite/plugin_common_test_2.c: New testcase.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42757