- Download zip archive with problematic elf file: 1.elf.zip
- Unpack it somewhere
- Using addr2line
master branch, run cargo run --example=addr2line -- -e /path/to/1.elf 0x80
Expected output (as produced by addr2line from GNU binutils):
Z:\/1.c:1
I'm not sure why there are two slashes, but path and line number are correct.
Actual output:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("Invalid ELF section header offset/size/alignment")', examples\addr2line.rs:156:17
masterbranch, runcargo run --example=addr2line -- -e /path/to/1.elf 0x80Expected output (as produced by addr2line from GNU binutils):
Z:\/1.c:1I'm not sure why there are two slashes, but path and line number are correct.
Actual output:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("Invalid ELF section header offset/size/alignment")', examples\addr2line.rs:156:17