summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2008-11-16 23:16:47 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2008-11-16 23:16:47 (GMT)
commit3d6e959ad3e56681ba39bd8f0a003b8a1aff132c (patch)
tree9a8c7608f60d05c8b968f443567fc77825fff8ff /src/format
parent12b4201890b4b2eefffaa6615b4b3076253dff6f (diff)
Took care of signed immediate values as well as unsigned ones.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@42 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format')
-rw-r--r--src/format/elf/symbol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/format/elf/symbol.c b/src/format/elf/symbol.c
index c8a0dac..c80ceb4 100644
--- a/src/format/elf/symbol.c
+++ b/src/format/elf/symbol.c
@@ -553,7 +553,7 @@ void translate_elf_relocations(elf_format *format, asm_instr **instructions, siz
&& instructions[i + 1]->type == AIT_PUSH
&& instructions[i + 2]->type == AIT_JUMP)
{
- if (get_imm_operand_value(instructions[i]->operands[0], AOS_64_BITS, &address))
+ if (get_imm_operand_value(instructions[i]->operands[0], AOS_64_BITS_UNSIGNED, &address))
for (j = 0; j < format->sym_count; j++)
if (format->symbols[j].address == address)
{