]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/cpu-score.c
Enhance the disassembler so that it will reliably determine whether a reloc applies...
[thirdparty/binutils-gdb.git] / bfd / cpu-score.c
index 576e9adbdaba0fea674405ecb054372e61c8b3d9..5bf9c6bdf26faf2db4a056a8b853210c97f4c045 100644 (file)
@@ -43,11 +43,11 @@ compatible (const bfd_arch_info_type * a, const bfd_arch_info_type * b)
   return a;
 }
 
-#define N(addr_bits, machine, print, default, next)            \
+#define N(machine, print, default, next)                       \
 {                                                              \
-  32,                          /* 16 bits in a word.  */       \
+  32,                          /* Bits in a word.  */          \
   32,                          /* Bits in an address.  */      \
-  8,                           /* 8 bits in a byte.  */        \
+  8,                           /* Bits in a byte.  */          \
   bfd_arch_score,                                              \
   machine,                     /* Machine number.  */          \
   "score",                     /* Architecture name.   */      \
@@ -57,13 +57,14 @@ compatible (const bfd_arch_info_type * a, const bfd_arch_info_type * b)
   compatible,                                                  \
   bfd_default_scan,                                            \
   bfd_arch_default_fill,                                       \
-  next                                                         \
+  next,                                                                \
+  0 /* Maximum offset of a reloc from the start of an insn.  */ \
 }
 
 static const bfd_arch_info_type arch_info_struct[] =
 {
-  N (16, bfd_mach_score3, "score3", FALSE, NULL),
+  N (bfd_mach_score3, "score3", FALSE, NULL),
 };
 
 const bfd_arch_info_type bfd_score_arch =
-  N (16, bfd_mach_score7, "score7", TRUE, & arch_info_struct[0]);
+  N (bfd_mach_score7, "score7", TRUE, & arch_info_struct[0]);