Use bfd_octets_per_byte instead of OCTETS_PER_BYTE
authorNick Clifton <nickc@redhat.com>
Mon, 19 Jun 2000 01:01:04 +0000 (01:01 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 19 Jun 2000 01:01:04 +0000 (01:01 +0000)
gas/ChangeLog
gas/symbols.c

index b995c681368f230597d6529e971f0a560bae57fb..092f385db7175c202892278c27aa9bcdcd7ae9a0 100644 (file)
@@ -1,5 +1,8 @@
 2000-06-18  Nick Clifton  <nickc@redhat.com>
 
+       * 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.
 
index b54a2fd93774c03580ae37b23e172472566e9715..68c50bbbaa04063cf1dec912f587863df53caa85 100644 (file)
@@ -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)
        {