]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc: Adapt coredump to generate correct elf type
authorClement Leger <cleger@kalray.eu>
Mon, 2 Mar 2020 09:39:02 +0000 (10:39 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 26 Mar 2020 05:29:41 +0000 (22:29 -0700)
commit48045769d33345724b9e02c60cd58161b1e6426d
treeb7816105ddc579efeadce8bd23982b505eb7a629
parentfb8799c3ee3586d519f9a39f186ef19319a3d16e
remoteproc: Adapt coredump to generate correct elf type

Now that remoteproc can load an elf64, coredump elf class should be
the same as the loaded elf class. In order to do that, add a
elf_class field to rproc with default values. If an elf is loaded
successfully, this field will be updated with the loaded elf class.
Then, the coredump core code has been modified to use the generic elf
macro in order to create an elf file with correct class.

Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Clement Leger <cleger@kalray.eu>
Link: https://lore.kernel.org/r/20200302093902.27849-9-cleger@kalray.eu
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
drivers/remoteproc/remoteproc_elf_loader.c
include/linux/remoteproc.h