https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89534
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to jon_y from comment #1) > Weak symbols aren't quite supported with PE, I'm not sure if making the > symbol weak is the right approach. > > Do you have a test case to show this will lead to the correct behavior with > MAKE_DECL_ONE_ONLY? Well, it's related to https://sourceware.org/bugzilla/show_bug.cgi?id=24267 where we get a different resolution on COFF than on ELF. But apparently, it's a bug in binutils. I was just curious what makes a difference from compiler perspective (among ELF and COFF) and MAKE_DECL_ONE_ONLY was the difference.