Thread (35 messages) flat view 35 messages, 2 authors, 2016-01-13

[PATCH v6 11/21] arm64: ilp32: introduce binfmt_ilp32.c

From: Yury Norov <hidden>
Date: 2016-01-07 23:45:58
Also in: lkml

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? 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help