public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: binfmt support in Cygwin?
Date: Thu, 23 Nov 2023 16:22:04 +0100	[thread overview]
Message-ID: <ZV9uHCC9UTeUc4zR@calimero.vinschen.de> (raw)
In-Reply-To: <CALXu0UcHPCKtARBskY0kRgES1t4ttmuKBW2q0+aLkysxRoZbbA@mail.gmail.com>

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

      reply	other threads:[~2023-11-23 15:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-26  5:15 Cedric Blancher
2023-11-22 22:52 ` Cedric Blancher
2023-11-23 15:22   ` Corinna Vinschen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZV9uHCC9UTeUc4zR@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).