[PATCH 0/2] remoteproc: elf: ignore PT_LOAD type segment with memsz as 0

Peng Fan (OSS) posted 2 patches 4 years, 3 months ago
There is a newer version of this series
drivers/remoteproc/imx_dsp_rproc.c         | 95 +---------------------
drivers/remoteproc/remoteproc_elf_loader.c |  9 +-
2 files changed, 9 insertions(+), 95 deletions(-)
[PATCH 0/2] remoteproc: elf: ignore PT_LOAD type segment with memsz as 0
Posted by Peng Fan (OSS) 4 years, 3 months ago
From: Peng Fan <peng.fan@nxp.com>

i.MX DSP firmware has segments with PT_LOAD and memsz/filesz as zero.
It is valid case the memsz set to zero according to elf spec:
https://refspecs.linuxbase.org/elf/elf.pdf page 40

So we could let remoteproc elf loader handle this case, then no
duplicate code in imx dsp rproc driver

Tested i.MX8MP DSP and M7 remoteproc

Peng Fan (2):
  remoteproc: elf_loader: skip segment with memsz as zero
  remoteproc: imx_dsp_rproc: use common rproc_elf_load_segments

 drivers/remoteproc/imx_dsp_rproc.c         | 95 +---------------------
 drivers/remoteproc/remoteproc_elf_loader.c |  9 +-
 2 files changed, 9 insertions(+), 95 deletions(-)

-- 
2.25.1