From 24e91f7e7afba6a68a410889a915e3e4bb9ce6ff Mon Sep 17 00:00:00 2001 From: balika011 Date: Sun, 3 Jun 2018 23:48:33 +0200 Subject: [PATCH] set entry point --- belf/belf_loader.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/belf/belf_loader.cpp b/belf/belf_loader.cpp index ca9c743..7eaf170 100644 --- a/belf/belf_loader.cpp +++ b/belf/belf_loader.cpp @@ -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()) ||