diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-04-25 21:35:19 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-04-25 21:35:19 (GMT) |
commit | ee0ff01247738e847ae3faa44dcb5168d7b758ba (patch) | |
tree | e945f95a84a97237debf0b16ee11ed95d6862afb /src/arch/target.c | |
parent | 2a1dd967d3b4e06f504431f9d3d613992095b2c3 (diff) |
Registered suitable linkage hooks and defined right links between instructions.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@519 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/target.c')
-rw-r--r-- | src/arch/target.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/arch/target.c b/src/arch/target.c index 7509711..01c2bfe 100644 --- a/src/arch/target.c +++ b/src/arch/target.c @@ -328,3 +328,26 @@ bool g_target_operand_resolve(GTargetOperand *operand, const GBinFormat *format) return result; } + + +/****************************************************************************** +* * +* Paramètres : operand = opérande dont le contenu est à raffiner. * +* diff = décallage entre le symbole et l'adresse initiale. * +* * +* Description : Fournit les indications concernant le symbole associé. * +* * +* Retour : Symbole résolu ou NULL si aucun. * +* * +* Remarques : - * +* * +******************************************************************************/ + +GBinSymbol *g_target_operand_get_symbol(const GTargetOperand *operand, phys_t *diff) +{ + if (diff != NULL) + *diff = operand->diff; + + return operand->symbol; + +} |