Skip to content

"Invalid ELF section header offset/size/alignment" panic #170

@slonopotamus

Description

@slonopotamus
  1. Download zip archive with problematic elf file: 1.elf.zip
  2. Unpack it somewhere
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions