diff --git a/BinaryTools.Elf/ElfFile.cs b/BinaryTools.Elf/ElfFile.cs index fae73ad..9d08681 100644 --- a/BinaryTools.Elf/ElfFile.cs +++ b/BinaryTools.Elf/ElfFile.cs @@ -130,6 +130,8 @@ public static ElfFile ReadElfFile(BinaryReader reader) var sections = new ElfSectionHeaderTable(reader, header); var segments = new ElfProgramHeaderTable(reader, header, sections); + reader.BaseStream.Position = savedPosition; + return new ElfFile(header, segments, sections); } catch (InaccessibleAddressException exception)