summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/analysis/disass/area.c2
-rw-r--r--src/arch/arm/v7/post.c6
3 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index e18bb91..8d2f406 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
15-05-05 Cyrille Bagard <nocbos@gmail.com>
+ * src/analysis/disass/area.c:
+ * src/arch/arm/v7/post.c:
+ Make labels for symbols look nicer.
+
+15-05-05 Cyrille Bagard <nocbos@gmail.com>
+
* src/analysis/disass/disassembler.c:
Reorder the disassembling steps for more sanity.
diff --git a/src/analysis/disass/area.c b/src/analysis/disass/area.c
index bc19224..6ed6804 100644
--- a/src/analysis/disass/area.c
+++ b/src/analysis/disass/area.c
@@ -426,7 +426,7 @@ static void update_address_as_routine(GBinFormat *format, const vmpa2t *addr)
init_mrange(&range, addr, 0);
vmpa2_virt_to_string(addr, MDS_UNDEFINED, loc, NULL);
- snprintf(name, sizeof(name), "ZZZ_%s", loc + 2);
+ snprintf(name, sizeof(name), "sub_%s", loc + 2);
routine = g_binary_routine_new();
g_binary_routine_set_name(routine, strdup(name));
diff --git a/src/arch/arm/v7/post.c b/src/arch/arm/v7/post.c
index 23d0198..17dcf62 100644
--- a/src/arch/arm/v7/post.c
+++ b/src/arch/arm/v7/post.c
@@ -69,7 +69,7 @@ void post_process_branch_instructions(GArchInstruction *instr, GArchProcessor *p
init_vmpa(&target, VMPA_NO_PHYSICAL, addr);
init_mrange(&trange, &target, 0);
- vmpa2_virt_to_string(&target, MDS_32_BITS, loc, NULL);
+ vmpa2_virt_to_string(&target, MDS_UNDEFINED, loc, NULL);
snprintf(name, sizeof(name), "loc_%s", loc + 2);
routine = g_binary_routine_new();
@@ -133,7 +133,7 @@ void post_process_branch_and_link_instructions(GArchInstruction *instr, GArchPro
init_vmpa(&target, VMPA_NO_PHYSICAL, addr);
init_mrange(&trange, &target, 0);
- vmpa2_virt_to_string(&target, MDS_32_BITS, loc, NULL);
+ vmpa2_virt_to_string(&target, MDS_UNDEFINED, loc, NULL);
snprintf(name, sizeof(name), "sub_%s", loc + 2);
routine = g_binary_routine_new();
@@ -197,7 +197,7 @@ void post_process_comp_and_branch_instructions(GArchInstruction *instr, GArchPro
init_vmpa(&target, VMPA_NO_PHYSICAL, addr);
init_mrange(&trange, &target, 0);
- vmpa2_virt_to_string(&target, MDS_32_BITS, loc, NULL);
+ vmpa2_virt_to_string(&target, MDS_UNDEFINED, loc, NULL);
snprintf(name, sizeof(name), "loc_%s", loc + 2);
routine = g_binary_routine_new();