summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
Diffstat (limited to 'src/format')
-rw-r--r--src/format/elf/symbols.c2
-rw-r--r--src/format/symbol.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/format/elf/symbols.c b/src/format/elf/symbols.c
index 31fbabd..c09c429 100644
--- a/src/format/elf/symbols.c
+++ b/src/format/elf/symbols.c
@@ -244,7 +244,7 @@ static void register_elf_entry_point(GElfFormat *format, virt_t vaddr, phys_t le
g_binary_routine_set_range(routine, &range);
- symbol = g_binary_symbol_new(STP_ROUTINE, "XXX", ~0);
+ symbol = g_binary_symbol_new(STP_ENTRY_POINT, "XXX", ~0);
g_binary_symbol_attach_routine(symbol, routine);
g_binary_format_add_symbol(base, symbol);
diff --git a/src/format/symbol.c b/src/format/symbol.c
index 1e6063f..ce5c837 100644
--- a/src/format/symbol.c
+++ b/src/format/symbol.c
@@ -225,6 +225,7 @@ const char *g_binary_symbol_to_string(const GBinSymbol *symbol)
switch (symbol->type)
{
case STP_ROUTINE:
+ case STP_ENTRY_POINT:
result = g_binary_routine_get_name(symbol->extra.routine);
break;
@@ -275,6 +276,7 @@ const char *g_binary_symbol_get_label(const GBinSymbol *symbol)
switch (symbol->type)
{
case STP_ROUTINE:
+ case STP_ENTRY_POINT:
result = g_binary_routine_get_name(symbol->extra.routine);
break;
@@ -325,6 +327,7 @@ void g_binary_symbol_fix_range(GBinSymbol *symbol, const vmpa2t *full)
break;
case STP_ROUTINE:
+ case STP_ENTRY_POINT:
routine = g_binary_symbol_get_routine(symbol);
@@ -371,6 +374,7 @@ const mrange_t *g_binary_symbol_get_range(const GBinSymbol *symbol)
break;
case STP_ROUTINE:
+ case STP_ENTRY_POINT:
result = g_binary_routine_get_range(symbol->extra.routine);
break;