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