binutils 2.15.91 and 2.16.91: ctors from crtend.o not load on linux cross gcc (__cxa_throw)

2006-01-12 Thread Henry Nestler
* 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

[Bug ld/2147] ctors from crtend.o not linked on linux cross gcc (__cxa_throw)

2006-01-12 Thread Henry at BigFoot dot de
--- 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

[Bug binutils/1391] objcopy trashes PE executable when using "add-gnu-debuglink"

2006-01-12 Thread Brian dot Ford at FlightSafety dot com
--- 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

[Bug ld/2147] New: ctors from crtend.o not linked on linux cross gcc (__cxa_throw)

2006-01-12 Thread Henry at BigFoot dot de
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; <<<

Re: [Bug ld/2143] New: Unresolvable reference by DSO to hidden symbol despite --allow-shlib-undefined

2006-01-12 Thread vamsi krishna
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 <--

[Bug ld/2143] New: Unresolvable reference by DSO to hidden symbol despite --allow-shlib-undefined

2006-01-12 Thread jan dot echternach at group-technologies dot com
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