This is the mail archive of the gcc@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]

Re: libstdc++ problems /w egcs-2.91.52 on sparc-linux?


Kevin Milans <kmilans@CapAccess.org> writes:

|> >Please try
|> >
|> >       nm /usr/lib/libstdc++.a | grep -e : -e 'vt.*filebuf'
|> 
|> This reports many object files.  Those which are followed by symbols are:
|> 
|> filebuf.o: 
|>          U __vt_7filebuf 
|> stdstrbufs.o: 
|>          U _vt.7filebuf 
|> streambuf.o:  
|> 00000000 R __vt_7filebuf
|> 
|> I will check to see if stdstrbufs.o was compiled differently from the 
|> other two.  If that turns out to be the problem, there's probably a bug
|> in the build process.

That looks like a problem with _G_config.h, perhaps the compiler is using
the wrong one.  It should contain the following lines:

/* These are the vtbl details for ELF.  */
#define _G_NAMES_HAVE_UNDERSCORE 0
#define _G_VTABLE_LABEL_HAS_LENGTH 1
#define _G_USING_THUNKS 1
#define _G_VTABLE_LABEL_PREFIX "__vt_"
#define _G_VTABLE_LABEL_PREFIX_ID __vt_

stdstrbufs.cc is special, because it constructs symbol names with asm.

-- 
Andreas Schwab                                      "And now for something
schwab@issan.informatik.uni-dortmund.de              completely different"
schwab@gnu.org


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