From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: svivanov@pdmi.ras.ru Cc: egcs@cygnus.com Subject: Re: Why link C with crtstuff? [patch] Date: Sun, 26 Apr 1998 00:01:00 -0000 Message-id: <18449.893570733@hurl.cygnus.com> References: X-SW-Source: 1998-04/msg01031.html In message < m0yTDf2-000B93C@svivano.pdmi.ras.ru >you write: > There is a feature of egcs (and gcc 2.8.x) that I don't like. > It links everything with crtbegin[S].o/crtend[S].o which in turn > reference symbols from frame.o. Well, like it or it, it will stay. > On the other hand, crtstuff is a C++ related thing > and is not needed for pure C code (AFAIK). It is needed if: * You want to link C & C++ together. * You use exceptions. * you use block profiling. * You write code which uses the constructor or destructor attributes. * Shared libraries need to be self-contained in respect to compiler intrinsics -- which include the EH mechanisms. ie, the library must have its own copy of those routines. Yes, this means we have to keep old interfaces for compiler intrinsics around. But that's just the price we have to pay. jeff