aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-s12z.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf32-s12z.c')
-rw-r--r--bfd/elf32-s12z.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-s12z.c b/bfd/elf32-s12z.c
index ba64985..8b3099c 100644
--- a/bfd/elf32-s12z.c
+++ b/bfd/elf32-s12z.c
@@ -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);