[comp.sys.mips] libc.a and -G 0

net@tub.UUCP (Oliver Laumann) (06/27/90)

I have noticed that on MIPS-based machines (DECStation 3100, Sony 3860)
/lib/libc.a contains object modules that have not been compiled with
-G 0, namely alloca.o, the directory functions (readdir, scandir, etc.),
and possibly more.  Is this intended?

It's a Bad Thing, since it makes dynamic loading of object modules
that depend on these functions impossible.  The linker refuses to
incrementally link an object file if either that file or any object
file referenced by it have not been compiled with -G 0.

Am I missing something?

Thanks,
--
    Oliver Laumann, Technical University of Berlin, Germany.
    pyramid!tub!net   net@TUB.BITNET   net@tub.cs.tu-berlin.de