fix qemu-run
@@ -26,7 +26,7 @@ fn notmain() -> Result<Option<i32>, anyhow::Error> {
let path = &args[0];
let bytes = fs::read(path)?;
let elf = ElfFile::new(&bytes).map_err(anyhow::Error::msg)?;
- let table = elf2table::parse(&elf)?;
+ let table = elf2table::parse(&elf)?.ok_or_else(|| anyhow!("`.binfmt` section not found"))?;
let mut child = Command::new("qemu-system-arm")
.args(&[
