Date: Tue, 8 Nov 1994 13:36:47 -0800 From: Soren Soe To: djgpp AT sun DOT soe DOT clarkson DOT edu Cc: soeren AT ce DOT ucsc DOT edu Subject: QUESTION: libgcc.a I just rebuilt libgcc.a by creating a files similar to the files distributed in: djlsr112.zip: /libsrc/gcc/src However, since I am building a new compiler from new sources I updated libgcc1.cc_ and libgcc2.cc_ and created _.c for all the library members listed as LIB1FUNCS and LIB2FUNCS in the gcc makefile. LIB2FUNCS includes __main and _exit but I notice that these two functions are not included in the libgcc.a distributed in gcc260bn.zip, why is that? Now, there is no problem compiling __main.c and _exit.c, but if they are included in the library the global_ctor and global_dtor are NOT invoked? Hence global objects are never constructed. If I remove __main.o and _exit.o from the library, then everything is fine. Anybody got a clue? Thanks, --soeren -- Soren Soe Xilinx Inc. phone: 408-879-4555 2100 Logic Dr email: soeren AT xilinx DOT com San Jose, CA 95124