diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2009-07-15 22:35:11 (GMT) | 
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2009-07-15 22:35:11 (GMT) | 
| commit | 5dbb4e6a9f0dcb75abf9e7abdc0d8a98f66af147 (patch) | |
| tree | 29e2cf6110425e0d7804bc57d76dba32476a1efd /src/arch | |
| parent | 293f9f24c6338b5d41dd8f613aefae6be9bdbfcb (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')
| -rw-r--r-- | src/arch/immediate.c | 10 | 
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, " <%s>", label); -                    else snprintf(buffer, 256, " <%s+0x%llx>", label, offset); +                    if (address == 0) snprintf(buffer, 256, " <%s>", label); +                    else snprintf(buffer, 256, " <%s+0x%llx>", label, address);                      result = stradd(result, buffer);                      break;  | 
