Using binfmt_misc
Up to now, what we have discussed is how to load an ARM shared library in the Intel x86 architecture. Houdini can also support running standalone ARM applications on Intel devices as well. To do this, it uses a mechanism called binfmt_misc. binfmt_misc, which is a capability of the Linux kernel that allows arbitrary executable file formats to be recognized and passed to certain user space applications, such as emulators and virtual machines.
According to the Linux kernel documentation, this kernel feature allows you to invoke almost every program by simply typing its name in the shell. This includes, for example, compiled Java (TM), Python, or Emacs. To achieve this, you must tell binfmt_misc which interpreter should be ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access