bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/12762] lto produces multiple definition errors for all symbols (


From: nickc at redhat dot com
Subject: [Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++
Date: Tue, 2 Aug 2011 10:57:08 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12762

--- Comment #14 from Nick Clifton <nickc at redhat dot com> 2011-08-02 10:56:35 
UTC ---
Hi Alan,

> Nick, I reckon your patch is covering a bug elsewhere.

Oh, definitely.

>  Symbols in discarded sections are supposed to be treated as undefined.

But these sections are not being discarded.

The problem, I think is that gcc's LTO framework is trying to use the comdat
feature to handle duplicate symbols, but this is not really supported by COFF
based targets.

> Ah ha!  I see _bfd_generic_section_already_linked is setting
> SEC_GROUP for the plugin comdat entry in the already_linked list, and then
> totally ignores any entry with SEC_GROUP set.

I saw that too, but I could not find a way to make it work.

> Created attachment 5870 [details]
> fix the real problem

Did you try this on the test case in this PR ?  I had a go locally and it seems
that the problem is still there. :-(  Either that or I misapplied your patch.

Cheers
  Nick

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]