X-pop3-spooler: POP3MAIL 2.1.0 b 3 961213 -bs- Delivered-To: pcg AT goof DOT com Message-ID: <19980328032640.48837@cerebro.laendle> Date: Sat, 28 Mar 1998 03:26:40 +0100 From: Marc Lehmann To: beastium-list AT Desk DOT nl Subject: Re: Why is collect2 installed with pgcc-1.0/pgcc-1.0.1? Mail-Followup-To: beastium-list AT desk DOT nl Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.89.1i X-Operating-System: Linux version 2.1.85 (root AT cerebro) (gcc version pgcc-2.91.06 980129 (gcc-2.8.0 release)) Status: RO Content-Length: 1441 Lines: 29 On Wed, Mar 25, 1998 at 04:54:33PM -0800, SL Baur wrote: > I am having a problem with random memory corruption and crashes in a > 100% C program that have been traced to constructor/destructor code in > libgcc.a/frame.o. I have verified that if I let pgcc have its way > linking, it will insert the bad code. If I hand link with > /usr/bin/ld, everything is O.K. > > Is there a way to get a handle on why it feels a need to insert > constructors and destructors in a C program? Or, can collect2 not be > installed? > > I note that HJ Lu's binary kit of GCC-2.7.2.3 does not have collect2 > installed. gcc-2.7.2.3 is obsolete (C++ wise) ;) now, collect2 is necessary on all systems with egcs-1.0 (for people that donīt know what we are talking about, collect2 is usually installed as gcc-libdir/ld) If you get errors only when collect2 is installed, we probably have a (more or less serious) compiler bug. What bad code is inserted? Can you send me a testcase? Do you have binutils-2.8.1.0.15 or newer? -----==- | ----==-- _ | ---==---(_)__ __ ____ __ Marc Lehmann +-- --==---/ / _ \/ // /\ \/ / pcg AT goof DOT com |e| -=====/_/_//_/\_,_/ /_/\_\ --+ The choice of a GNU generation | |