Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1304026

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

From Yury Norov <ynorov@caviumnetworks.com>
Newsgroups linux.kernel
Subject Re: [PATCH v6 11/21] arm64: ilp32: introduce binfmt_ilp32.c
Date 2016-01-08 00:50 +0100
Message-ID <qOstB-6LL-37@gated-at.bofh.it> (permalink)
References <qOsjT-6Hv-9@gated-at.bofh.it> <qOsjU-6Hv-37@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Jan 08, 2016 at 02:34:29AM +0300, Yury Norov wrote:
> to handle ILP32 binaries
> 
> Signed-off-by: Yury Norov <ynorov@caviumnetworks.com>
> ---
[...]
> 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? 

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v6 11/21] arm64: ilp32: introduce binfmt_ilp32.c Yury Norov <ynorov@caviumnetworks.com> - 2016-01-08 00:40 +0100
  Re: [PATCH v6 11/21] arm64: ilp32: introduce binfmt_ilp32.c Yury Norov <ynorov@caviumnetworks.com> - 2016-01-08 00:50 +0100
  Re: [PATCH v6 11/21] arm64: ilp32: introduce binfmt_ilp32.c Arnd Bergmann <arnd@arndb.de> - 2016-01-08 10:10 +0100
    Re: [PATCH v6 11/21] arm64: ilp32: introduce binfmt_ilp32.c Yury Norov <ynorov@caviumnetworks.com> - 2016-01-12 17:50 +0100
      Re: [PATCH v6 11/21] arm64: ilp32: introduce binfmt_ilp32.c Arnd Bergmann <arnd@arndb.de> - 2016-01-13 00:10 +0100

csiph-web