remoteproc: Add elf64 support in elf loader
authorClement Leger <cleger@kalray.eu>
Mon, 2 Mar 2020 09:39:00 +0000 (10:39 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 26 Mar 2020 05:29:40 +0000 (22:29 -0700)
commitf31e339f1b9b765c8c727d635c1b74424c102c1e
tree3b2b3a819cd1adb9efc51b93119edcf19c948bac
parent826c339099295312eb9bc207197f3beb6ff19051
remoteproc: Add elf64 support in elf loader

In order to support elf64, use macros from remoteproc_elf_helpers.h
to access elf headers depending on elf class.
To allow new drivers to support elf64, add rproc_elf_sanity_check
function which make more sense than adding a elf64 named one since
it will support both elf versions.
Driver which need to support both elf32/elf64 should use this new
function for elf sanity check instead of the elf32 one.

Signed-off-by: Clement Leger <cleger@kalray.eu>
Tested-by: Arnaud POULIQUEN <arnaud.pouliquen@st.com>
Link: https://lore.kernel.org/r/20200302093902.27849-7-cleger@kalray.eu
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Documentation/remoteproc.txt
drivers/remoteproc/remoteproc_elf_loader.c
drivers/remoteproc/remoteproc_internal.h