Strange output from g++/gcc (S.u.S.E 6.2)
Jeffrey A Law
Thu Sep 30 19:57:00 GMT 1999
In message < Pine.SOL.3.96.990903214042.11461A-100000@mp1 >you write:
> I have used:
> gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).
> I'm not fully understand some features of compiling :)
> I'm issue a command:
> > g++ -fPIC -Wall -Wmissing-prototypes -Wcast-align -I/usr/include/g++ -c
> TSDHScale.cc -o TSDHScale.o
> It compiles without any warnings.
> Then i make 'nm' on resulting oblect file and i have a lot of following
> BFD: TSDHScale.o: invalid string offset 6912 >= 1019 for section
> After that i'm recompiling with '-O' and 'nm' getting it as a right object
> For some other files it was in a contrary way: i need to compile without
> '-O' to get rid of those 'invalid string offset' messages.
> I'm not sure what is a cause of those messages at all?
This sounds like a bug in either your assembler or your linker -- this kind of
stuff is not really a compiler issue.
More information about the Gcc-bugs