From 24ef8152517797595d81e7f4355fe05bab741144 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 19 Jun 2000 01:01:04 +0000 Subject: [PATCH] Use bfd_octets_per_byte instead of OCTETS_PER_BYTE --- gas/ChangeLog | 3 +++ gas/symbols.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index b995c681368..092f385db71 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ 2000-06-18 Nick Clifton + * symbols.c (resolve_symbol_value): Use bfd_octets_per_byte + instead of OCTETS_PER_BYTE. + * config/tc-v850.c: Fix compile time warnings. * config/tc-ppc.c: Fix compile time warnings. diff --git a/gas/symbols.c b/gas/symbols.c index b54a2fd9377..68c50bbbaa0 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 / OCTETS_PER_BYTE; + return locsym->lsy_offset / bfd_octets_per_byte (stdoutput); final_val = (local_symbol_get_frag (locsym)->fr_address - + locsym->lsy_offset) / OCTETS_PER_BYTE; + + locsym->lsy_offset) / bfd_octets_per_byte (stdoutput); if (finalize) { -- 2.30.2