diff options
author | comex | 2015-01-21 17:02:52 -0500 |
---|---|---|
committer | comex | 2015-01-21 17:03:21 -0500 |
commit | 9fbf8080fb308d9c6dad8c534ad8892c2d715087 (patch) | |
tree | 3415053faf262f7ad2766d18c0885d81ba7cbad2 /lib/transform-dis.c | |
parent | forgot to actually check this in (diff) | |
download | substitute-9fbf8080fb308d9c6dad8c534ad8892c2d715087.tar.gz |
minor cleanup - stop caring about thumb outside of arch-specific code
(and fix makefile bug where files whose names contained 'arm' would
always be ldid'd)
Diffstat (limited to 'lib/transform-dis.c')
-rw-r--r-- | lib/transform-dis.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/transform-dis.c b/lib/transform-dis.c index 6067ea0..9edf89e 100644 --- a/lib/transform-dis.c +++ b/lib/transform-dis.c @@ -13,7 +13,6 @@ struct transform_dis_ctx { bool modify; int err; - bool pc_low_bit; uintptr_t pc_patch_start; uintptr_t pc_patch_end; uintptr_t pc; @@ -73,13 +72,14 @@ int transform_dis_main(const void *restrict code_ptr, void **restrict rewritten_ptr_ptr, uintptr_t pc_patch_start, uintptr_t pc_patch_end, - bool pc_low_bit, + struct arch_dis_ctx initial_arch_ctx, int *offset_by_pcdiff) { struct transform_dis_ctx ctx; + memset(&ctx, 0, sizeof(ctx)); ctx.pc_patch_start = pc_patch_start; ctx.pc_patch_end = pc_patch_end; - ctx.pc_low_bit = pc_low_bit; ctx.pc = pc_patch_start; + ctx.arch = initial_arch_ctx; /* data is written to rewritten both by this function directly and, in case * additional scaffolding is needed, by arch-specific transform_dis_* */ ctx.rewritten_ptr_ptr = rewritten_ptr_ptr; |