Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Consider relative offset when parsing EH frame.
Related to #385
  • Loading branch information
rthomas committed Apr 7, 2020
1 parent 1014ba0 commit b57f323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ELF/Binary.cpp
Expand Up @@ -2388,7 +2388,7 @@ LIEF::Binary::functions_t Binary::eh_frame_functions(void) const {
const Segment* load_segment = *it_load_segment;

const bool is64 = (this->type() == ELF_CLASS::ELFCLASS64);

eh_frame_off = eh_frame_off - load_segment->file_offset();
VectorStream vs{std::move(load_segment->content())};
vs.setpos(eh_frame_off);

Expand Down

0 comments on commit b57f323

Please sign in to comment.