From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 58FA03857C40; Thu, 23 Nov 2023 15:22:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 58FA03857C40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1700752927; bh=/E3WLrO89kzxVhsVoxZDQFmtMMYPgPpKx8ucs8Xoczw=; h=Date:From:To:Subject:Reply-To:References:In-Reply-To:From; b=y5BlTHCWuQ4Q5NSe3nW/vk6EJRZXRoeEnowXUQ6YF5fRnolugdr7SgEAjxky1H+/f hW/E0b9ndz2PCTJG0a0RHER9DQ6rfMVurnarSIas8NMUCwDmgPSNXOoXoH930DdjVS zA+tFW+CY+hoIqvYkBQW7qFUhE033AWtacIeybrU= Received: by calimero.vinschen.de (Postfix, from userid 500) id 45CFAA80B9F; Thu, 23 Nov 2023 16:22:04 +0100 (CET) Date: Thu, 23 Nov 2023 16:22:04 +0100 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: binfmt support in Cygwin? Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: List-Id: On Nov 22 23:52, Cedric Blancher via Cygwin wrote: > On Tue, 26 Sept 2023 at 07:15, Cedric Blancher > wrote: > > > > Good morning! > > > > Does Cygwin support something like Linux binfmt, to register new binary types? > > > > Goal would be to recognise python compiled code, or > > https://wiki.debian.org/QemuUserEmulation > > ? Cygwin doesn't implement its own binary executable loader like ld.so on Linux. Apart from allowing to start shell scripts per execve(2), we depend on the Windows PE/COFF Loader. Therefore, we can't support non-PE/COFF binaries. As a sidenote, way back when porting Cygwin to 64 bit, it has been discussed to convert Cygwin binaries to ELF and use some kind of dynamic loader executable like ld.so. However, our budget was pretty low, and the work involved in creating such a new loader on Windows was deemed too expensive/complicated. Having said that, anybody taking a stab at something like that would have our keenest support. Corinna