This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/16394] New: collect2 doesn't work well with gnu linker
- From: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jul 2004 21:34:28 -0000
- Subject: [Bug other/16394] New: collect2 doesn't work well with gnu linker
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
By default, collect2 will try to demangle the error message from
the gnu linker. If a section name resembles a mangled name, the
output from collect2 is very confusing. Instead of getting
[hjl@gnu-psc collect]$ /usr/gcc-3.4/bin/gcc *.s
`foo' referenced in section `.text' of /tmp/ccUdOXzr.o: defined in discarded
section `.data[._ZTIP9CTemplateIhE]' of /tmp/ccUdOXzr.o
/tmp/ccUdOXzr.o(.text+0x0): In function `main':
: undefined reference to `.typeinfo for CTemplate<unsigned char>*'
collect2: ld returned 1 exit status
I got
[hjl@gnu-psc collect]$ gcc *.s
`foo' referenced in section `.text' of /tmp/ccyqMpKW.o: defined in discarded
section `.data[.typeinfo for CTemplate<unsigned char>*]' of /tmp/ccyqMpKW.o
/tmp/ccyqMpKW.o(.text+0x0): In function `main':
: undefined reference to `.typeinfo for CTemplate<unsigned char>*'
collect2: ld returned 1 exit status
--
Summary: collect2 doesn't work well with gnu linker
Product: gcc
Version: 3.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl at lucon dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16394