diff options
author | Timothy Wall <twall@alum.mit.edu> | 2000-02-03 18:20:23 +0000 |
---|---|---|
committer | Timothy Wall <twall@alum.mit.edu> | 2000-02-03 18:20:23 +0000 |
commit | bea9907b2a19c3ed94595a88003b8900938b0ad9 (patch) | |
tree | b2652f586bd91490ee6f658b40744dee34f5d96c /gas/symbols.c | |
parent | 940b2b788ccdda311ff16e18d79e68d0c7928842 (diff) | |
download | gdb-bea9907b2a19c3ed94595a88003b8900938b0ad9.zip gdb-bea9907b2a19c3ed94595a88003b8900938b0ad9.tar.gz gdb-bea9907b2a19c3ed94595a88003b8900938b0ad9.tar.bz2 |
octets vs bytes changes for GAS
Diffstat (limited to 'gas/symbols.c')
-rw-r--r-- | gas/symbols.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/symbols.c b/gas/symbols.c index 1e0f190..b54a2fd 100644 --- a/gas/symbols.c +++ b/gas/symbols.c @@ -862,10 +862,10 @@ resolve_symbol_value (symp, finalize) struct local_symbol *locsym = (struct local_symbol *) symp; if (local_symbol_resolved_p (locsym)) - return locsym->lsy_offset; + return locsym->lsy_offset / OCTETS_PER_BYTE; final_val = (local_symbol_get_frag (locsym)->fr_address - + locsym->lsy_offset); + + locsym->lsy_offset) / OCTETS_PER_BYTE; if (finalize) { @@ -921,7 +921,7 @@ resolve_symbol_value (symp, finalize) /* Fall through. */ case O_constant: - final_val += symp->sy_frag->fr_address; + final_val += symp->sy_frag->fr_address / OCTETS_PER_BYTE; if (final_seg == expr_section) final_seg = absolute_section; resolved = 1; |