remoteproc: elf_loader: fix program header parsing
authorFabien Dessenne <fabien.dessenne@st.com>
Wed, 4 Sep 2019 07:53:22 +0000 (09:53 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 24 Jan 2020 16:19:52 +0000 (11:19 -0500)
commit83b539cfd49f0fbcce4dd9d127776354031a7308
tree8165dc2412942d2fec5c13e7a65183c754710c49
parent2c871f9e084b2c03d1961884228a6901387ab8d6
remoteproc: elf_loader: fix program header parsing

Fix an issue where some sections are never loaded : if p_type is
different from PT_LOAD the phdr pointer must be incremented.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Acked-by: Suman Anna <s-anna@ti.com>
drivers/remoteproc/rproc-elf-loader.c