summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-08-11 23:12:20 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-08-11 23:12:20 (GMT)
commit184249f07fb32fb2449723f5f94ce221015231b7 (patch)
treedba90857104a96be5d1fd07d3051cda474cb3e3b /src/format
parent5cd25c4adfe0426520a51a76de3f77c77cfa4b8e (diff)
Improved the loading of several binaries.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@106 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format')
-rw-r--r--src/format/elf/helper_x86.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/format/elf/helper_x86.c b/src/format/elf/helper_x86.c
index 82be74c..c31882c 100644
--- a/src/format/elf/helper_x86.c
+++ b/src/format/elf/helper_x86.c
@@ -257,8 +257,6 @@ void translate_elf_relocations(GElfFormat *format, GArchInstruction **instructio
{
operand = g_arch_instruction_get_operand(instructions[i], 0);
- g_imm_operand_to_vmpa_t(G_IMM_OPERAND(operand), &address);
-
if (g_imm_operand_to_vmpa_t(G_IMM_OPERAND(operand), &address))
{
symbols = g_binary_format_get_symbols(G_BIN_FORMAT(format), &symbols_count);
@@ -286,6 +284,8 @@ void translate_elf_relocations(GElfFormat *format, GArchInstruction **instructio
symbol = g_binary_symbol_new(STP_FUNCTION, new_name, address);
g_binary_format_add_symbol(G_BIN_FORMAT(format), symbol);
+ break;
+
}
}