Skip to content

Commit b57f323

Browse files
author
rthomas
committed
Consider relative offset when parsing EH frame.
Related to #385
1 parent 1014ba0 commit b57f323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ELF/Binary.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2388,7 +2388,7 @@ LIEF::Binary::functions_t Binary::eh_frame_functions(void) const {
23882388
const Segment* load_segment = *it_load_segment;
23892389

23902390
const bool is64 = (this->type() == ELF_CLASS::ELFCLASS64);
2391-
2391+
eh_frame_off = eh_frame_off - load_segment->file_offset();
23922392
VectorStream vs{std::move(load_segment->content())};
23932393
vs.setpos(eh_frame_off);
23942394

0 commit comments

Comments
 (0)