This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug other/16394] New: collect2 doesn't work well with gnu linker


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]