delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Sat, 21 Nov 2009 13:56:37 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: [1.7] .exe append weirdness |
Message-ID: | <20091121125636.GA29173@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <4B075486 DOT 20400 AT users DOT sourceforge DOT net> |
MIME-Version: | 1.0 |
In-Reply-To: | <4B075486.20400@users.sourceforge.net> |
User-Agent: | Mutt/1.5.20 (2009-06-14) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |