Tag
The Linux kernel is set to support $ORIGIN for relocatable binaries via eBPF and binfmt_misc, enabling Nix and similar tools to select interpreters programmatically.
This article introduces the binfmt_misc feature introduced in the Linux kernel in 1997. It allows registering rules to hand off binary execution to a specified interpreter. Today, combined with Rosetta on Apple Silicon Macs, it enables efficient x86 container operation, achieving performance close to 70-90% of native.