bfd_reloc_status_type status;
/* Sanity check the address (offset in section). */
- bfd_vma octet = offset * bfd_octets_per_byte (abfd, input_section);
+ bfd_vma octet = offset * OCTETS_PER_BYTE (abfd, input_section);
if (!bfd_reloc_offset_in_range (howto, abfd, input_section, octet))
return bfd_reloc_outofrange;
/* Sanity check the address (offset in section). */
bfd_vma octet = (reloc_entry->address
- * bfd_octets_per_byte (abfd, input_section));
+ * OCTETS_PER_BYTE (abfd, input_section));
if (!bfd_reloc_offset_in_range (reloc_entry->howto,
abfd, input_section, octet))
return bfd_reloc_outofrange;
return bfd_reloc_ok;
}
+ bfd_vma octet = (reloc_entry->address
+ * OCTETS_PER_BYTE (input_bfd, input_section));
+ if (!bfd_reloc_offset_in_range (reloc_entry->howto, input_bfd, input_section,
+ octet))
+ return bfd_reloc_outofrange;
+
sdata = nds32_elf_section_data (input_section);
if (sdata->nds32_hi20_list != NULL)
{
/* Sanity check the address (offset in section). */
bfd_vma octet = (reloc_entry->address
- * bfd_octets_per_byte (input_bfd, input_section));
+ * OCTETS_PER_BYTE (input_bfd, input_section));
if (!bfd_reloc_offset_in_range (reloc_entry->howto, input_bfd, input_section,
octet))
return bfd_reloc_outofrange;
bfd_vma relocation;
/* Sanity check the address. */
- bfd_vma octet = address * bfd_octets_per_byte (input_bfd, input_section);
+ bfd_vma octet = address * OCTETS_PER_BYTE (input_bfd, input_section);
if (!bfd_reloc_offset_in_range (howto, input_bfd, input_section, octet))
return bfd_reloc_outofrange;