Skip to content

register x86_64-linux-user #11

@yahavb

Description

@yahavb

I am trying to emulate x86_64 compiled code to run on aarch64 so I try to register the new x86_64-linux-user interpreter.

I added x86_64-linux-user to the TARGET_ARCH and

COPY --from=qemu /usr/local/bin/qemu-x86_64 /qemu-x86_64

Build works well I can't figure out the hex sequence needed to /proc/sys/fs/binfmt_misc/register in register.sh

e.g. for aarch64 it is

echo ':qemu-aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/qemu-aarch64:CF' > /proc/sys/fs/binfmt_misc/register

Any hint into how to get that sequence?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions