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.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to