Hi Michael,

On Fri, 21 Jul 2023 13:25:44 +0300 Michael Tokarev <m...@tls.msk.ru> wrote:
> 21.07.2023 11:30, Xinhui Yang wrote:
> > Package: qemu-user-static
> > Version: 1:8.0.3+dfsg-2
> >
> > QEMU 8.0 brings support for NaN2008 ELF executables[1] for userland
> > emulation. A modification on binfmt side is required to adapt this
> > change.
> >
> > [1]:
https://gitlab.com/qemu/qemu/-/commit/450cb7ec2c5fda51b9650ca25e59ac9deeb60d1b
>
> Thank you for the patch and the efforts!
> It's difficult to diff hex numbers.
>
> Can you please check of this change:
>
>
https://salsa.debian.org/qemu-team/qemu/-/commit/2b2a0014644d4f0a7dc6641cf321e47e91634333
>
> works for you?
>
> it is based on a upstream change to binfmt registration which I forgot
to include.
> But I'm not certain I get it all right, - there might be some
cut-n-paste mistake.
>
> I *think* it includes your change plus a bit more.
>

Yes, after filing this bug I tested the binfmt support script shipped
with QEMU. It worked fine, I can run both NaN2008 and Release 6 ELFs,
since it can cover a bit more ELFs of the same machine or architecture.

>
> (I need to think about switching to using upstream qemu-binfmt-register.sh
> (which is based on debian/binfmt-install but with furhter enhancements)).
>

I would like to suggest it too, since QEMU now have a binfmt solution,
which could save a lot of work for downstream distros, as distros would
no longer have to ship binfmt configurations themselves.

Thanks,
Xinhui

Reply via email to