diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-05-05 14:12:34 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-05-05 14:12:34 (GMT) |
commit | 7bfd47436b231f4cd8587850ca8c7ac54c2c254e (patch) | |
tree | 0ab7d108b05b34580566b04e794d88d86c0fe821 | |
parent | 7806ff93441318ad1f724f0b586383b61c4af859 (diff) |
Made labels for symbols look nicer.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@527 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/analysis/disass/area.c | 2 | ||||
-rw-r--r-- | src/arch/arm/v7/post.c | 6 |
3 files changed, 10 insertions, 4 deletions
@@ -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(); |