Someone wrote in [personal profile] reddragdiva 2019-08-07 10:42 am (UTC)

32 bit under WSL-1 (slow, but it works)

sorry for the length, but the procedure to use i386 under WSL-1 is the following:

enable i386 architecture
install multilibs
install qemu-user-static

register 32bit elf magic to be executed through qemu-i386-static:
$ sudo update-binfmts --install i386 /usr/bin/qemu-i386-static --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'

reload binfmt:
$ sudo service binfmt-support start

and it executes i386 elf on WSL as well

Post a comment in response:

(will be screened)
(will be screened if not on Access List)
(will be screened if not on Access List)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting