summaryrefslogtreecommitdiff
path: root/plugins/elf
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2021-04-05 22:59:31 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2021-04-05 23:11:48 (GMT)
commitb0347ca45a08ac63bc6dd6f244b046c6d19a6cdd (patch)
tree9af1ec9901ddcf696bd3297633faf9fb46712396 /plugins/elf
parentcf0b5d5f07e8102f2c9a04012bf29cabda9d85e4 (diff)
Build a partial working support for the PE format.
Diffstat (limited to 'plugins/elf')
-rw-r--r--plugins/elf/symbols.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/elf/symbols.c b/plugins/elf/symbols.c
index a7cf05c..6d037cb 100644
--- a/plugins/elf/symbols.c
+++ b/plugins/elf/symbols.c
@@ -1195,11 +1195,11 @@ static bool register_elf_entry_point(GElfFormat *format, virt_t vaddr, GBinRouti
result = g_exe_format_translate_address_into_vmpa(G_EXE_FORMAT(format), final_vaddr, &addr);
if (!result) goto exit;
- base = G_BIN_FORMAT(format);
-
/* Comptabilisation en tant que symbole */
- if (g_binary_format_find_symbol_at(G_BIN_FORMAT(format), &addr, &symbol))
+ base = G_BIN_FORMAT(format);
+
+ if (g_binary_format_find_symbol_at(base, &addr, &symbol))
{
/**
* On ne relâche pas tout de suite le symbole trouvé, afin de le traiter