On Fri, Jan 08, 2016 at 02:34:29AM +0300, Yury Norov wrote:
to handle ILP32 binaries
Signed-off-by: Yury Norov <redacted>
---
[...]
quoted hunk ↗ jump to hunk
diff --git a/arch/arm64/kernel/binfmt_ilp32.c b/arch/arm64/kernel/binfmt_ilp32.c
new file mode 100644
index 0000000..02a7a6c
--- /dev/null
+++ b/arch/arm64/kernel/binfmt_ilp32.c
@@ -0,0 +1,21 @@
+/*
+ * Support for ILP32 Linux/aarch64 ELF binaries.
+ */
+
+/* AARCH64 ILP32 EABI. */
+#define compat_elf_check_arch(x) (((x)->e_machine == EM_AARCH64) \
+ && (x)->e_ident[EI_CLASS] == ELFCLASS32)
+
Not sure about this. Originally it was just:
#define compat_elf_check_arch(x) (((x)->e_machine == EM_AARCH64) \
But how than distinguish aarch64 and aarch64/ilp32 elfs?