https://sourceware.org/bugzilla/show_bug.cgi?id=33561
Peter Damianov <peter0x44 at disroot dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |peter0x44 at disroot dot org
--- Comment #2 from Peter Damianov <peter0x44 at disroot dot org> ---
Yes, indeed, I think that is the same bug.
Can you check if my patch for it works?
I think the comdat sections are getting merged when it shouldn't do that when
doing a relocatable link
diff --git a/bfd/coffgen.c b/bfd/coffgen.c
index 071ca0d133c..ed9ced31ec2 100644
--- a/bfd/coffgen.c
+++ b/bfd/coffgen.c
@@ -2766,6 +2766,10 @@ _bfd_coff_section_already_linked (bfd *abfd,
if (sec->output_section == bfd_abs_section_ptr)
return false;
+ /* Don't merge COMDAT sections during relocatable linking. */
+ if (bfd_link_relocatable (info))
+ return false;
+
flags = sec->flags;
if ((flags & SEC_LINK_ONCE) == 0)
return false;
--
You are receiving this mail because:
You are on the CC list for the bug.