Print this page
8609 want a position independent CRT

*** 1062,1081 **** TRACEOBJS= \ plockstat.o # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o ! # modules whose source is provided in the $(SRC)/lib/common directory. # This must be done because otherwise the Sun C compiler would insert # its own versions of these modules and those versions contain code # to call out to C++ initialization functions. Such C++ initialization # functions can call back into libc before thread initialization is # complete and this leads to segmentation violations and other problems. # Since libc contains no C++ code, linking with the minimal crti.o and # crtn.o modules is safe and avoids the problems described above. OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN) ! CRTSRCS= ../../common/sparc # include common library definitions include $(SRC)/lib/Makefile.lib # we need to override the default SONAME here because we might --- 1062,1081 ---- TRACEOBJS= \ plockstat.o # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o ! # modules whose source is provided in the $(SRC)/lib/crt directory. # This must be done because otherwise the Sun C compiler would insert # its own versions of these modules and those versions contain code # to call out to C++ initialization functions. Such C++ initialization # functions can call back into libc before thread initialization is # complete and this leads to segmentation violations and other problems. # Since libc contains no C++ code, linking with the minimal crti.o and # crtn.o modules is safe and avoids the problems described above. OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN) ! CRTSRCS= ../../crt/sparcv7 # include common library definitions include $(SRC)/lib/Makefile.lib # we need to override the default SONAME here because we might