summaryrefslogtreecommitdiff
path: root/src/arch/immediate.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-07-15 22:35:11 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-07-15 22:35:11 (GMT)
commit5dbb4e6a9f0dcb75abf9e7abdc0d8a98f66af147 (patch)
tree29e2cf6110425e0d7804bc57d76dba32476a1efd /src/arch/immediate.c
parent293f9f24c6338b5d41dd8f613aefae6be9bdbfcb (diff)
Restored the routine address resolution.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@96 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/immediate.c')
-rw-r--r--src/arch/immediate.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/arch/immediate.c b/src/arch/immediate.c
index 3bc4712..c57919f 100644
--- a/src/arch/immediate.c
+++ b/src/arch/immediate.c
@@ -342,7 +342,7 @@ static char *g_imm_operand_get_text(const GImmOperand *operand, const exe_format
char *result; /* Chaîne à retourner */
char *label; /* Etiquette de symbole */
SymbolType symtype; /* Type de symbole */
- vmpa_t offset; /* Décallage final constaté */
+ vmpa_t address; /* Décallage final constaté */
char buffer[256]; /* Complément d'information */
/* Valeur brute */
@@ -435,15 +435,15 @@ static char *g_imm_operand_get_text(const GImmOperand *operand, const exe_format
if (operand->size == AOS_32_BITS_SIGNED || operand->size == AOS_32_BITS_UNSIGNED) /* FIXME */
{
- offset = operand->unsigned_imm.val32; /* FIXME !!! */
+ address = operand->unsigned_imm.val32; /* FIXME !!! */
- if (resolve_exe_symbol(format, &label, &symtype, &offset))
+ if (resolve_exe_symbol(format, &label, &symtype, &address))
{
switch (symtype)
{
case STP_SECTION:
- if (offset == 0) snprintf(buffer, 256, " &lt;%s&gt;", label);
- else snprintf(buffer, 256, " &lt;%s+0x%llx&gt;", label, offset);
+ if (address == 0) snprintf(buffer, 256, " &lt;%s&gt;", label);
+ else snprintf(buffer, 256, " &lt;%s+0x%llx&gt;", label, address);
result = stradd(result, buffer);
break;