From 7bfd47436b231f4cd8587850ca8c7ac54c2c254e Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Tue, 5 May 2015 14:12:34 +0000 Subject: Made labels for symbols look nicer. git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@527 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a --- ChangeLog | 6 ++++++ src/analysis/disass/area.c | 2 +- src/arch/arm/v7/post.c | 6 +++--- 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 + * src/analysis/disass/area.c: + * src/arch/arm/v7/post.c: + Make labels for symbols look nicer. + +15-05-05 Cyrille Bagard + * 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(); -- cgit v0.11.2-87-g4458