* Bug: Cross compile from linux for mingw32 don't init the ctors from
crtend.o! Every 'throw' in a program crashes with a "NULL-Pointer read"
in function __cxa_throw.
* Analysed why it crashed:
>>> Source line:
gcc-3.3.1-20030804-1/libstdc++-v3/libsupc++/eh_throw.cc:64 >>>
header->unexpect
--- Additional Comments From Henry at BigFoot dot de 2006-01-12 17:59
---
Created an attachment (id=826)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=826&action=view)
patch binutils-2.16.91 to load ctors from crtend.o
--
http://sourceware.org/bugzilla/show_bug.cgi?id=2147
--- Additional Comments From Brian dot Ford at FlightSafety dot com
2006-01-12 21:55 ---
(In reply to comment #4)
> Yes, although I am not sure if an easy fix exists. In the meantime
> please could you try the attached patch which might work. The problem
> with it is that it has to g
Cross compile from linux for mingw32 don't init the ctors from crtend.o!
Every 'throw' in a program crashes with a "NULL-Pointer read" in function
__cxa_throw.
>>> Source line: gcc-3.3.1-20030804-1/libstdc++-v3/libsupc++/eh_throw.cc:64 >>>
header->unexpectedHandler = __unexpected_handler;
<<<
Hello,
Dont use 'ld' directly to create the shared libraries. Use gcc
--shared. I had the same problem earlier and this seems to be the
workaround.
<-->
$ gcc -Wall -W -fPIC -c -o oldlib.o oldlib.c
$ gcc --shared -o liboldlib.so oldlib.o
<--
I'm getting a "hidden symbol is referenced by DSO" error if I link a program
with both LSB2's libc.so and an old libnotes.so from Lotus Domino 6.
libnotes.so has an undefined reference to atexit, LSB2's libc.so has no
definition of that symbol, but there is a hidden atexit symbol in
libc_nonsh