diff options
Diffstat (limited to 'plugins/mobicore')
-rw-r--r-- | plugins/mobicore/symbols.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/mobicore/symbols.c b/plugins/mobicore/symbols.c index dc0a950..ec2dd34 100644 --- a/plugins/mobicore/symbols.c +++ b/plugins/mobicore/symbols.c @@ -79,12 +79,13 @@ static void register_mclf_entry_point(GMCLFFormat *format, virt_t vaddr, phys_t init_vmpa(&addr, vaddr - format->header.v1.text.start, vaddr); init_vmpa(&addr, VMPA_NO_PHYSICAL, vaddr); - init_mrange(&range, &addr, len); + init_mrange(&range, &addr, len); - g_binary_routine_set_range(routine, &range); + symbol = G_BIN_SYMBOL(routine); + + g_binary_symbol_set_range(symbol, &range); + g_binary_symbol_set_target_type(symbol, STP_ENTRY_POINT); - symbol = g_binary_symbol_new(STP_ENTRY_POINT); - g_binary_symbol_attach_routine(symbol, routine); g_binary_format_add_symbol(base, symbol); } |