[PATCH 5.4.y] soc: qcom: mdt_loader: Ensure we don't read past the ELF header