More information about: Bug in ar?
Cyrille Artho
cartho@mordor.ch
Wed Jul 19 02:43:00 GMT 2000
A few things I did not mention before: I always built the files from
scratch, because running 'ar ru...' produced too many errors.
The object files from g++ are usually the same, although the *sometimes*
differ. The difference is not, as I previously suspected, in the
mangling strings coming from g++ (these never differ). The outputs of
'nm' are always equal, except for (sometimes) missing symbols and, of
course, offsets.
I finally could reproduce an output where the .o files differed (which
is not often the case) and where 'nm' said "xy.o truncated". Therefore,
the problem may lie in g++.
I will now investigate whether the source code that produces the error
always includes some C code in a C++ file that has not yet been declared
extern "C".
Possibly, the error "file xy truncated" results from g++, while the
error messages
BFD: UTraceOut.o: invalid string offset 1769472 >= 958 for section
`.shstrtab'
hint at some problem in BFD.
--
Regards,
Cyrille Artho - http://artho.com
Alcohol is the anesthesia by which we endure the operation of life.
-- George Bernard Shaw
More information about the Binutils
mailing list