summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-02-11 08:43:35 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-02-11 08:43:35 (GMT)
commitabd96dbbe27246e9303173e5e2f47b2e4cedbcb7 (patch)
treec0f8bfd8d6514ac63edcb09655f6feebbd424f09 /src/format
parentdfa7e04b4a267f7f30086510781ca3221b7e25f8 (diff)
Marked buffer lines as containing an entry point when needed.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@470 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
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;