summaryrefslogtreecommitdiff
path: root/src/analysis
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis')
-rw-r--r--src/analysis/disass/area.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/analysis/disass/area.c b/src/analysis/disass/area.c
index 86c41d3..d2a03c6 100644
--- a/src/analysis/disass/area.c
+++ b/src/analysis/disass/area.c
@@ -1485,7 +1485,6 @@ static bool mark_range_in_mem_area_as_processed(mem_area *area, phys_t start, ph
static void update_address_as_routine(GBinFormat *format, const vmpa2t *addr)
{
GBinSymbol *symbol; /* Symbole présent ou créé */
- phys_t offset; /* Décallage trouvé */
bool found; /* Détection de symbole */
SymbolType sym_type; /* Type de symbole en place */
bool wrong_type; /* Analyse plus fine de ce type*/
@@ -1494,7 +1493,7 @@ static void update_address_as_routine(GBinFormat *format, const vmpa2t *addr)
char name[5 + VMPA_MAX_LEN]; /* Nom de symbole nouveau */
GBinRoutine *routine; /* Nouvelle routine trouvée */
- found = g_binary_format_resolve_symbol(format, addr, &symbol, &offset);
+ found = g_binary_format_find_symbol_at(format, addr, &symbol);
if (found)
{
@@ -1502,7 +1501,7 @@ static void update_address_as_routine(GBinFormat *format, const vmpa2t *addr)
wrong_type = (sym_type != STP_ROUTINE && sym_type != STP_ENTRY_POINT);
}
- if (!found || (found && offset == 0 && wrong_type))
+ if (!found || (found && wrong_type))
{
init_mrange(&range, addr, 0);