On Nov 21 10:46, JonY wrote: > Hi, > > I'm using a win64 target cross compiler under Cygwin. I noticed all > the stripped dlls will eventually end with ".exe". > > I am on 32bit Windows XP sp3, Cygwin 1.7.0-64. (Upgrading to -65 > causes "system shared memory version mismatch detected" for all > Cygwin apps, its another issue altogether. > > This does not happen to native win32 dlls produced with -m32 or with > Cygwin dlls.
This should be basically fixed in CVS now. The problem is that the Windows function GetBinaryType returns different results for 64-bit DLLs, dependent on the OS. On 64-bit OSes it returns with an error ERROR_BAD_EXE_FORMAT. That's how it's supposed to be for all DLLs per MSDN(*). However, on 32-bit OSes the function returns unexpectedly successful with the file type set to SCS_64BIT_BINARY. Thanks for the report, Corinna (*) http://msdn.microsoft.com/en-us/library/aa364819%28VS.85%29.aspx -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple