You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Thanks for the report. This is an issue with the object crate though.
Looking at the file, the section headers are incorrectly aligned (4 bytes instead of 8 bytes), but maybe this is common enough that we have to handle it anyway. Which linker was used to create this file?
master
branch, runcargo 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
The text was updated successfully, but these errors were encountered: