On Sun, 2010-02-28 at 08:33 +0100, Danny Backx wrote: > I'll try to get at this with a better test program :-) > > If anyone has any, please don't hesitate to send it.
Simple test attached. Danny pavilion: {111} make arm-mingw32ce-gcc -c -o t.o t.c arm-mingw32ce-gcc -c -o l.o l.c arm-mingw32ce-gcc -shared -o l.dll l.o arm-mingw32ce-gcc -shared -Wl,--enable-auto-import -o t.dll t.o -L. -ll collect2: ld terminated with signal 11 [Segmentation fault], core dumped make: *** [t.dll] Error 1 pavilion: {112} gdb /opt/mingw32ce/arm-mingw32ce/bin/ld core.13287 GNU gdb 6.8-7mdv2010.0 (Mandriva Linux release 2010.0) Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i586-mandriva-linux-gnu"... warning: Can't read pathname for load map: Input/output error. Reading symbols from /lib/libz.so.1...done. Loaded symbols for /lib/libz.so.1 Reading symbols from /lib/i686/libc.so.6...done. Loaded symbols for /lib/i686/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Core was generated by `/opt/mingw32ce/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/bin/ld --s'. Program terminated with signal 11, Segmentation fault. [New process 13287] #0 0x0808b531 in coff_write_relocs (abfd=0x97ee558, first_undef=2) at /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/binutils/bfd/coffcode.h:2665 2665 if (q->sym_ptr_ptr[0]->the_bfd != abfd) Missing debug package(s), you should install: glibc-debug-2.10.1-6.2mnb2.i586 zlib-debug-1.2.3-13mdv2010.0.i586 (gdb) bt #0 0x0808b531 in coff_write_relocs (abfd=0x97ee558, first_undef=2) at /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/binutils/bfd/coffcode.h:2665 #1 0x0808c7c4 in coff_write_object_contents (abfd=0x97ee558) at /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/binutils/bfd/coffcode.h:4145 #2 0x080787c0 in bfd_make_readable (abfd=0x97ee558) at /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/binutils/bfd/opncls.c:865 #3 0x0806b330 in make_singleton_name_imp (import=0x96a5b44 "a", parent=0x9699a78) at /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/binutils/ld/pe-dll.c:2253 #4 0x0806c1cf in pe_create_import_fixup (rel=0x96a5d40, s=0x96a66b0, addend=0) at /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/binutils/ld/pe-dll.c:2570 #5 0x08064e5b in make_import_fixup (rel=0x96a5d40, s=0x96a66b0) at earm_wince_pe.c:964 #6 0x080689ee in pe_walk_relocs_of_symbol (info=0x80e95e0, name=0x969bebc "a", cb=0x8064dc0 <make_import_fixup>) at /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/binutils/ld/pe-dll.c:1262 #7 0x08064271 in pe_find_data_imports () at earm_wince_pe.c:1034 #8 0x08064441 in gld_arm_wince_pe_after_open () at earm_wince_pe.c:1131 #9 0x0805f7bb in ldemul_after_open () at /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/binutils/ld/ldemul.c:66 #10 0x08058916 in lang_process () at /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/binutils/ld/ldlang.c:6293 #11 0x0805c93e in main (argc=27, argv=0xbfe0f494) at /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/binutils/ld/ldmain.c:455 (gdb) -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
ldbug.tar.gz
Description: application/compressed-tar
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel