Skip to content

Commit

Permalink
set entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
balika011 committed Jun 3, 2018
1 parent 2296af8 commit 24e91f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions belf/belf_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,10 @@ void idaapi elf_load_file(linput_t *li, ushort neflags, const char *fileformatna
}
}

inf.start_ip = get_imagebase() + reader.get_header().e_entry;
inf.start_cs = getseg(inf.start_ip)->sel;
msg("entry point: 0x%x\n", reader.get_header().e_entry);

reader_t::dyninfo_tags_t dyninfo_tags;
dynamic_info_t dyninfo;
if (!reader.read_dynamic_info_tags(&dyninfo_tags, reader.pheaders.get_dynamic_linking_tables_info()) ||
Expand Down

0 comments on commit 24e91f7

Please sign in to comment.