delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/11/23/10:22:46

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 67E9C386185F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1700752964;
bh=6MhHJSCuzth3m2T+s1DKlx3fNd84iL7NM01MPw2/gS4=;
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=FGrsHX3zpje9YWi4urO68NAuBBDqTvkR7W/foXLOo5cY3AkLO1jt3qXE/k0rEkBGp
TrIAXqg/Qjsi5b8s6akAz/dsvY18NyQm0M/LYH/yfAEPQQgPduih8pyh0dCRe+7wmW
6IoGVSOWgsl+pVqu3mpruw6fx7q1zL9ypQA6SqfU=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 58FA03857C40
Date: Thu, 23 Nov 2023 16:22:04 +0100
To: cygwin AT cygwin DOT com
Subject: Re: binfmt support in Cygwin?
Message-ID: <ZV9uHCC9UTeUc4zR@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CALXu0UcnPAoXXp8tz1yWBnx838v42HpsBZhy-Q3hOZ8Gpou4SQ AT mail DOT gmail DOT com>
<CALXu0UcHPCKtARBskY0kRgES1t4ttmuKBW2q0+aLkysxRoZbbA AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CALXu0UcHPCKtARBskY0kRgES1t4ttmuKBW2q0+aLkysxRoZbbA@mail.gmail.com>
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Nov 22 23:52, Cedric Blancher via Cygwin wrote:
> On Tue, 26 Sept 2023 at 07:15, Cedric Blancher
> <cedric DOT blancher AT gmail DOT com> 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

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019