This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16276] New: G++ generates local references to linkonce sections
- From: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jun 2004 16:22:14 -0000
- Subject: [Bug c++/16276] New: G++ generates local references to linkonce sections
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
http://sources.redhat.com/bugzilla/show_bug.cgi?id=233
has a testcase where g++ generates non-debug local references
to linkonce sections. Due to a linker bug, those references
are ignored, which may lead to linker failure or corrupted
binary. With the fixed linker, I get
[hjl@gnu obj]$ g++ main.o modules/.libs/libmodules.a -B./
`local symbol 0' referenced in section `.text': discarded in section
`.gnu.linkonce.d._ZTIP9CTemplateIhE' from modules/.libs/libmodules.a(secondmodule.o)
`local symbol 1' referenced in section `.text': discarded in section
`.gnu.linkonce.d._ZTIP9CTemplateIhE' from modules/.libs/libmodules.a(secondmodule.o)
--
Summary: G++ generates local references to linkonce sections
Product: gcc
Version: 3.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl at lucon dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16276