https://manpages.debian.org/testing/binfmt-support/update-binfmts.8.en.html
update-binfmts --display
i386 (disabled):
package = <local>
type = magic
offset = 0
magic = \x7fELF\x01\x01\x01\x03\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x03\x00\x01\x00\x00\x00
mask = \xff\xff\xff\xff\xff\xff\xff\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xf8\xff\xff\xff\xff\xff\xff\xff
interpreter = /usr/bin/qemu-i386-static
detector =
update-binfmts --remove i386 /usr/bin/qemu-i386-static
update-binfmts: warning: no executable /usr/bin/qemu-i386-static found, but continuing anyway as you request
i386
https://coldnew.github.io/5cecf128/
透過 binfmt_misc 讓 Linux 可以執行不同格式的執
cat /proc/sys/fs/binfmt_misc/i386
enabled
interpreter /usr/bin/qemu-i386-static
flags:
offset 0
magic 7f454c460101010300000000000000000300030001000000
mask fffffffffffffffcfffffffffffffffff8ffffffffffffff
https://www.kernel.org/doc/Documentation/admin-guide/binfmt-misc.rst
echo -1 > /proc/sys/fs/binfmt_misc/i386