diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-05-13 19:59:41 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-05-13 19:59:41 (GMT) |
commit | ed5541867f94b36e701708757a0489298fe77135 (patch) | |
tree | 56cc80141354d1d955a6ad9599e3bc2ab7366ad7 /src/format/elf | |
parent | 3d28b198f12671e4933890a4b79933d064593ce3 (diff) |
Inserted symbols and routines using an optimized 100 times faster method.
Diffstat (limited to 'src/format/elf')
-rw-r--r-- | src/format/elf/helper_arm.c | 2 | ||||
-rw-r--r-- | src/format/elf/symbols.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/format/elf/helper_arm.c b/src/format/elf/helper_arm.c index f966296..cf86cfa 100644 --- a/src/format/elf/helper_arm.c +++ b/src/format/elf/helper_arm.c @@ -132,7 +132,7 @@ bool load_elf_arm_relocated_symbols(GElfFormat *format, const elf_shdr *relxxx, } if (symbol != NULL) - _g_binary_format_add_symbol(G_BIN_FORMAT(format), symbol, false); + g_binary_format_add_symbol(G_BIN_FORMAT(format), symbol); } diff --git a/src/format/elf/symbols.c b/src/format/elf/symbols.c index 91a4b71..29a8c3c 100644 --- a/src/format/elf/symbols.c +++ b/src/format/elf/symbols.c @@ -141,7 +141,6 @@ bool load_elf_symbols(GElfFormat *format) - g_binary_format_sort_symbols(G_BIN_FORMAT(format)); result &= load_all_elf_basic_entry_points(format); @@ -207,7 +206,7 @@ static void register_elf_entry_point(GElfFormat *format, virt_t vaddr, phys_t le symbol = g_binary_symbol_new(STP_ENTRY_POINT); g_binary_symbol_attach_routine(symbol, routine); - _g_binary_format_add_symbol(base, symbol, false); + g_binary_format_add_symbol(base, symbol); /* Comptabilisation pour le désassemblage brut */ g_binary_format_register_code_point(base, vaddr, true); @@ -670,7 +669,7 @@ static bool load_elf_internal_symbols(GElfFormat *format) } if (symbol != NULL) - _g_binary_format_add_symbol(base, symbol, false); + g_binary_format_add_symbol(base, symbol); } |