GCC >= 3 problems

Maciej W. Rozycki macro@ds2.pg.gda.pl
Wed Jan 23 11:13:00 GMT 2002


On Wed, 23 Jan 2002, H . J . Lu wrote:

> >  It may not necessarily be a linker bug.  It's a result of crtendS.o
> > referencing atexit() in older versions of gcc.  But there is no atexit() 
> > in libc.so -- it's only defined in libc_nonshared.a (thus it may be pulled
> > in and provided by executables).  A recompilation of libglut.so with the
> > new gcc should fix the problem. 
> 
> That is why I call it a linker bug. Why do you have to recompile a
> library?  Everything should work fine without recompiling.

 You have to recompile it because it bogusly references a symbol that was
unknown at the library's link time and therefore has to be provided by an
executable.  If an executable does not provide it, linking obviously
fails.  IOW, the library was built incorrectly and thus needs a rebuild. 

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +



More information about the Binutils mailing list