https://sourceware.org/bugzilla/show_bug.cgi?id=23304
Cary Coutant <ccoutant at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ccoutant at gmail dot com --- Comment #1 from Cary Coutant <ccoutant at gmail dot com> --- This is old, but may still be relevant: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=608029 Given the error message, it sure looks like arm-g++ is still failing to mark the typeinfo symbols as weak definitions. Back when that bug report was filed, duplicate explicit instantiations were not allowed, but if C++11 now allows them, the arm compiler should have been changed. The x86 g++ does in fact make them weak, so we don't get the duplicate symbol warnings. (I'm surprised that the target makes a difference -- I'd expect the decision to make those symbols weak would be in common code, independent of the target architecture.) The linker will not combine the identical typeinfo sections, though, since they're not in COMDAT groups. It'll allocate space for both copies, but all references will resolve to the first copy, and the second copy will just be wasted space. -- 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