[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/23304] ARM linker fails to combine identical typeinfo sections
From: |
ccoutant at gmail dot com |
Subject: |
[Bug ld/23304] ARM linker fails to combine identical typeinfo sections |
Date: |
Mon, 18 Jun 2018 15:24:34 +0000 |
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 ld/23304] New: ARM linker fails to combine identical typeinfo sections, nickc at redhat dot com, 2018/06/18
- [Bug ld/23304] ARM linker fails to combine identical typeinfo sections, pbrobinson at gmail dot com, 2018/06/18
- [Bug ld/23304] ARM linker fails to combine identical typeinfo sections,
ccoutant at gmail dot com <=
- [Bug ld/23304] ARM linker fails to combine identical typeinfo sections, belegdol at gmail dot com, 2018/06/19
- [Bug ld/23304] ARM linker fails to combine identical typeinfo sections, nickc at redhat dot com, 2018/06/19
- [Bug ld/23304] ARM linker fails to combine identical typeinfo sections, nickc at redhat dot com, 2018/06/19
- [Bug ld/23304] ARM linker fails to combine identical typeinfo sections, nickc at redhat dot com, 2018/06/19