Skip to content

Conversation

@politikl
Copy link

Summary

This PR adds binfmt.d configuration files that allow package managers to register muvm as an interpreter for x86/x86_64 ELF binaries on aarch64 systems.

  • Added share/binfmt.d/muvm-x86_64.conf for 64-bit x86 binaries
  • Added share/binfmt.d/muvm-i386.conf for 32-bit x86 binaries

The configuration files follow the systemd binfmt.d format and use the same magic bytes and masks as qemu-user-static for compatibility. The F (fix-binary) flag is used to ensure the interpreter remains available in container and chroot environments.

Package maintainers can install these files to /usr/lib/binfmt.d/ to enable transparent execution of x86 binaries through muvm.

Closes #24

Test plan

  • Verify configuration files are syntactically correct by registering them manually via /proc/sys/fs/binfmt_misc/register
  • Test that x86_64 ELF binaries are correctly identified and passed to muvm
  • Test that i386 ELF binaries are correctly identified and passed to muvm

Add binfmt.d configuration files that allow package managers to register
muvm as an interpreter for x86/x86_64 ELF binaries on aarch64 systems.

These files follow the systemd binfmt.d format and use the same magic
bytes and masks as qemu-user-static for compatibility.

The F (fix-binary) flag is used to ensure the interpreter remains
available in container and chroot environments.

Closes AsahiLinux#24

Signed-off-by: Aarav Desai <aaravd037@gmail.com>
@WhatAmISupposedToPutHere
Copy link
Collaborator

Muvm is not yet capable of of being a binfmt_misc handler, so there is no point to adding configuration files at this point. Also, jfyi https://asahilinux.org/docs/project/policies/slop/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create binfmt support files

2 participants