soc: qcom: mdt_loader: Handle split bins correctly
It may be that the offset of the first program header lies inside the mdt's
filesize, in this case the loader would incorrectly assume that the bins
were not split. The loading would then continue on to fail for split bins.
This change updates the logic used by the mdt loader to understand whether
the firmware images are split or not. It figures this out by checking if
each programs header's segment lies within the file or not.
Change-Id: I18ce4922eadceb96193584d829829878048ea045
Signed-off-by:
Siddharth Gupta <sidgup@codeaurora.org>
Loading
Please register or sign in to comment