This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/42757] lto1 does not emit common symbols with -fuse-linker-plugin



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]