MIPS: Use a union to access the ELF file header
authorMaciej W. Rozycki <macro@imgtec.com>
Fri, 13 Nov 2015 00:46:44 +0000 (00:46 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 19 Jan 2016 23:39:20 +0000 (00:39 +0100)
commit2ed02dd415aee71a8bf4c621a9bd65c256642b96
tree00bcf55d604be1048ac66f8da9c95fa994e28c2c
parenta0fd81a9df67e3863a297c45c2f74b3bd2224a5d
MIPS: Use a union to access the ELF file header

Rewrite `arch_elf_pt_proc' and `arch_check_elf' using a union to access
the ELF file header.

Signed-off-by: Maciej W. Rozycki <macro@imgtec.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Matthew Fortune <Matthew.Fortune@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/11474/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/elf.c