]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elf32-s12z.c
Introduce new section flag: SEC_ELF_OCTETS
[thirdparty/binutils-gdb.git] / bfd / elf32-s12z.c
index ba6498505a2a1b76d5b24001aa6bce98bb692840..8b3099c26ee3f98846404cc13de70fa5abe60160 100644 (file)
@@ -43,7 +43,8 @@ opru18_reloc (bfd *abfd, arelent *reloc_entry, struct bfd_symbol *symbol,
      is shifted one place to the left of where it would normally be.  See
      Appendix A.4 of the S12Z reference manual.  */
 
-  bfd_size_type octets = reloc_entry->address * bfd_octets_per_byte (abfd);
+  bfd_size_type octets = (reloc_entry->address
+                         * bfd_octets_per_byte (abfd, NULL));
   bfd_vma result = bfd_get_24 (abfd, (unsigned char *) data + octets);
   bfd_vma val = bfd_asymbol_value (symbol);