diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2008-10-29 20:14:05 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2008-10-29 20:14:05 (GMT) |
commit | 8a30afc05eed869865ba4dc9c107119f7ec00fe4 (patch) | |
tree | 18743934be1c2355c99788e49efb7a7a43e335f1 /src/arch/x86 | |
parent | 2e5893f9261ba59e06fadcc6ddfa9a1253e286b3 (diff) |
Do not relied on section names anymore.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@39 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/x86')
-rw-r--r-- | src/arch/x86/op_call.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/x86/op_call.c b/src/arch/x86/op_call.c index 980a5e7..7641214 100644 --- a/src/arch/x86/op_call.c +++ b/src/arch/x86/op_call.c @@ -57,6 +57,8 @@ asm_x86_instr *x86_read_instr_call_rel1632(const uint8_t *data, off_t *pos, off_ ASM_INSTRUCTION(result)->opcode = data[(*pos)++]; + ASM_INSTRUCTION(result)->type = AIT_CALL; + if (!x86_read_one_operand(result, data, pos, len, X86_OTP_REL1632, oprsize, offset)) { free(result); @@ -95,6 +97,8 @@ asm_x86_instr *x86_read_instr_call_rm1632(const uint8_t *data, off_t *pos, off_t ASM_INSTRUCTION(result)->opcode = data[(*pos)++]; + ASM_INSTRUCTION(result)->type = AIT_CALL; + if (!x86_read_one_operand(result, data, pos, len, X86_OTP_RM1632, oprsize)) { free(result); |