I'm sorry Dave, I'm afraid ld can't let me do that... hrrrrrm... well
Just tried the very command you reported. My XP is SP3. C:\mingw32ce-4.1-20100125>dir Le volume dans le lecteur C n'a pas de nom. Le numéro de série du volume est 80AF-8B27 Répertoire de C:\mingw32ce-4.1-20100125 31/01/2010 20:15 <REP> . 31/01/2010 20:15 <REP> .. 31/01/2010 20:15 <REP> cross41 31/01/2010 20:26 205 test.c 0 fichier(s) 0 octets 3 Rép(s) 6 609 469 440 octets libres C:\mingw32ce-4.1-20100125>set PATH=c:\mingw32ce-4.1-20100125\cross41\bin;%PATH% C:\mingw32ce-4.1-20100125>type test.c #include <windows.h> int APIENTRY WinMain(HINSTANCE inInstance, HINSTANCE inPrevInst, LPWSTR inCmdLine, int inCmdShow) { MessageBoxW(NULL, L"hello", L"hello", MB_ICONINFORMATION); return 0; } C:\mingw32ce-4.1-20100125>arm-mingw32ce-gcc -g test.c -o test.exe collect2: ld returned 5 exit status with a "ld.exe did domething bad and was closed" message from windows. Bonus 1: I tried --save-temps. Guess what? arm-mingw32ce-objdump - test.o ALSO crashes. In the same place, yes. At least it's consistent. I'm attaching the .o/.s files for your amusement. If the .o file crashes your setup, then as is generating garbage and ld and objdump are victims. C:\mingw32ce-4.1-20100125>c:\MinGW\gcc3\bin\gdb.exe arm-mingw32ce-objdump GNU gdb (GDB) 7.0.1 Copyright (C) 2009 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 "mingw32". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from c:\mingw32ce-4.1-20100125\cross41\bin/arm-mingw32ce-objdump.exe...done. (gdb) run -h test.o Starting program: c:\mingw32ce-4.1-20100125\cross41\bin/arm-mingw32ce-objdump.exe -h test.o [New Thread 2552.0xb44] Program received signal SIGSEGV, Segmentation fault. 0x77c178ac in strlen () from C:\WINDOWS\system32\msvcrt.dll (gdb) bt #0 0x77c178ac in strlen () from C:\WINDOWS\system32\msvcrt.dll #1 0x0042ff37 in make_a_section_from_file (abfd=0x2325a8) at /home/squalyl/cegcc/src/binutils/bfd/coffgen.c:93 #2 coff_real_object_p (abfd=0x2325a8) at /home/squalyl/cegcc/src/binutils/bfd/coffgen.c:222 #3 coff_object_p (abfd=0x2325a8) at /home/squalyl/cegcc/src/binutils/bfd/coffgen.c:301 Backtrace stopped: frame did not save the PC (gdb) Bonus 2: my environment. But I hardly think env will change something in this problem. C:\mingw32ce-4.1-20100125>set ALLUSERSPROFILE=C:\Documents and Settings\All Users APPDATA=C:\Documents and Settings\squalyl\Application Data CLIENTNAME=Console CommonProgramFiles=C:\Program Files\Fichiers communs COMPUTERNAME=Q45XP ComSpec=C:\WINDOWS\system32\cmd.exe FP_NO_HOST_CHECK=NO GPUTILS_HEADER_PATH=C:\Program Files\gputils\header GPUTILS_LKR_PATH=C:\Program Files\gputils\lkr GTK_BASEPATH=C:\GTK HOMEDRIVE=C: HOMEPATH=\Documents and Settings\squalyl LANG=FR LOGONSERVER=\\Q45XP NUMBER_OF_PROCESSORS=2 OS=Windows_NT PANGO_WIN32_NO_UNISCRIBE=anything Path=c:\mingw32ce-4.1-20100125\cross41\bin;C:\GTK\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\programs\opensc\bin;C:\jlibs\ocf\lib;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microchip\MPLAB C32 Suite\bin;C:\Program Files\Microchip\MPLAB IDE\VDI;C:\Program Files\HI-TECH Software\PICC\PRO\9.65\b in;C:\sdcc\bin;C:\Program Files\gputils\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=0f0d ProgramFiles=C:\Program Files PROMPT=$P$G SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\DOCUME~1\squalyl\LOCALS~1\Temp TMP=C:\DOCUME~1\squalyl\LOCALS~1\Temp USERDOMAIN=Q45XP USERNAME=squalyl USERPROFILE=C:\Documents and Settings\squalyl VS90COMNTOOLS=C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\ windir=C:\WINDOWS PS: the binaries in this toolchain includes debug information: http://www.unsads.com/~squalyl/cegcc/mingw32ce-4.1-20100129+gdb+dbg.zip Regards and thanks Sebastien
test.o
Description: Binary data
test.s
Description: Binary data
------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com
_______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel