Mail Archives: pgcc/1998/03/28/02:30:59
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 |
|
- Raw text -