bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GNU ld 2.11 bug on Solaris 2.8?


From: gentilesco
Subject: GNU ld 2.11 bug on Solaris 2.8?
Date: Wed, 2 May 2001 22:58:22 -0400 (EDT)

Hi,

When compiling any C++ program, even the most trivial:

void main() {}

with GNU g++ 2.95.2 and using the GNU ld from the binutils 2.11,
the program core dumps when run under a Solaris 2.8 on a SUN Sparc Ultra-60.

The gdb debugger indicates a Segmentation Violation in the function
__do__global__dtors__aux, which I assume is the destructor cleanup
function called automatically before exiting main().

If I move the GNU ld out of the way, and recompile, the program gets 
linked with the Solaris linker ld 4.0 instead, and the resulting executable
does *not* core dump when executed.

Can you confirm whether this is a bug in the GNU ld, probably
related to Solaris 2.8? It is such a fundamental problem, it should have been
seen long ago. Any Ideas?
The binutils 2.11 (which includes GNU ld) was built with GCC 2.95.2 on the same
platform indicated above.

Thanks,
Jim Gentilesco
address@hidden






reply via email to

[Prev in Thread] Current Thread [Next in Thread]