diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-01-25 01:12:54 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-01-25 01:12:54 (GMT) |
commit | 0993276d6450919c6d178182c5fd26497b62d5fc (patch) | |
tree | 5b069eb20ce7360ef6c8d4d55b8a0ab000eb70c2 /src/arch/arm/v7/link.h | |
parent | 141d2f0fbb2ce3b4ddf85383c55b891fd59dc598 (diff) |
Added a fixed address for the start of the '.plt' section and improved the disassembly process.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@460 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/arm/v7/link.h')
-rw-r--r-- | src/arch/arm/v7/link.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/arch/arm/v7/link.h b/src/arch/arm/v7/link.h index 87bef54..9e52fe6 100644 --- a/src/arch/arm/v7/link.h +++ b/src/arch/arm/v7/link.h @@ -37,12 +37,12 @@ void handle_links_with_instruction_b_with_orig(GArchInstruction *, GArmV7Context static inline void handle_links_with_instruction_b_from_arm(GArchInstruction *ins, GArmV7Context *ctx, GBinFormat *fmt) { - handle_links_with_instruction_b_with_orig(ins, ctx, fmt, AV7IS_THUMB); + handle_links_with_instruction_b_with_orig(ins, ctx, fmt, AV7IS_ARM); } static inline void handle_links_with_instruction_b_from_thumb(GArchInstruction *ins, GArmV7Context *ctx, GBinFormat *fmt) { - handle_links_with_instruction_b_with_orig(ins, ctx, fmt, AV7IS_ARM); + handle_links_with_instruction_b_with_orig(ins, ctx, fmt, AV7IS_THUMB); } @@ -77,6 +77,21 @@ static inline void handle_links_with_instruction_blx_from_thumb(GArchInstruction /* Complète un désassemblage accompli pour une instruction. */ +void handle_links_with_instruction_bx_with_orig(GArchInstruction *, GArmV7Context *, GBinFormat *, ArmV7InstrSet); + + +static inline void handle_links_with_instruction_bx_from_arm(GArchInstruction *ins, GArmV7Context *ctx, GBinFormat *fmt) +{ + handle_links_with_instruction_bx_with_orig(ins, ctx, fmt, AV7IS_ARM); +} + +static inline void handle_links_with_instruction_bx_from_thumb(GArchInstruction *ins, GArmV7Context *ctx, GBinFormat *fmt) +{ + handle_links_with_instruction_bx_with_orig(ins, ctx, fmt, AV7IS_THUMB); +} + + +/* Complète un désassemblage accompli pour une instruction. */ void handle_links_with_instruction_cb_n_z(GArchInstruction *, GArmV7Context *, GBinFormat *); /* Complète un désassemblage accompli pour une instruction. */ |