- 32, /* There's 32 bits_per_word. */
- 32, /* There's 32 bits_per_address. */
- 8, /* There's 8 bits_per_byte. */
- bfd_arch_score, /* One of enum bfd_architecture, defined
- in archures.c and provided in
- generated header files. */
- 0, /* Only 1 machine, but #255 for
- historical reasons. */
- "score", /* The arch_name. */
- "score", /* The printable name is the same. */
- 4, /* Section alignment power; each section
- is aligned to (only) 2^4 bytes. */
- TRUE, /* This is the default "machine", since
- there's only one. */
- bfd_default_compatible, /* A default function for testing
- "machine" compatibility of two
- bfd_arch_info_type. */
- bfd_default_scan, /* Check if an bfd_arch_info_type is a
- match. */
- NULL /* Pointer to next bfd_arch_info_type in
- the same family. */
+ /* If a & b are for different architectures we can do nothing. */
+ if (a->arch != b->arch)
+ return NULL;
+
+ if (a->mach != b->mach)
+ return NULL;
+
+ return a;
+}
+
+#define N(machine, print, default, next) \
+{ \
+ 32, /* Bits in a word. */ \
+ 32, /* Bits in an address. */ \
+ 8, /* Bits in a byte. */ \
+ bfd_arch_score, \
+ machine, /* Machine number. */ \
+ "score", /* Architecture name. */ \
+ print, /* Printable name. */ \
+ 4, /* Section align power. */ \
+ default, /* The default machine. */ \
+ compatible, \
+ bfd_default_scan, \
+ bfd_arch_default_fill, \
+ next, \
+ 0 /* Maximum offset of a reloc from the start of an insn. */ \
+}
+
+static const bfd_arch_info_type arch_info_struct[] =
+{
+ N (bfd_mach_score3, "score3", FALSE, NULL),