summaryrefslogtreecommitdiff
path: root/bfd/cpu-ft32.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/cpu-ft32.c')
-rw-r--r--bfd/cpu-ft32.c36
1 files changed, 35 insertions, 1 deletions
diff --git a/bfd/cpu-ft32.c b/bfd/cpu-ft32.c
index b24b0fc279..033720b18f 100644
--- a/bfd/cpu-ft32.c
+++ b/bfd/cpu-ft32.c
@@ -23,6 +23,40 @@
#include "libbfd.h"
+static const bfd_arch_info_type arch_info_struct[] =
+ {
+ {
+ 32, /* 32 bits in a word. */
+ 32, /* 32 bits in an address. */
+ 8, /* 8 bits in a byte. */
+ bfd_arch_ft32, /* enum bfd_architecture arch. */
+ bfd_mach_ft32,
+ "ft32", /* Arch name. */
+ "ft32", /* Printable name. */
+ 2, /* Unsigned int section alignment power. */
+ FALSE, /* The one and only. */
+ bfd_default_compatible,
+ bfd_default_scan,
+ bfd_arch_default_fill,
+ &arch_info_struct[1],
+ },
+ {
+ 32, /* 32 bits in a word. */
+ 32, /* 32 bits in an address. */
+ 8, /* 8 bits in a byte. */
+ bfd_arch_ft32, /* enum bfd_architecture arch. */
+ bfd_mach_ft32b,
+ "ft32b", /* Arch name. */
+ "ft32b", /* Printable name. */
+ 2, /* Unsigned int section alignment power. */
+ FALSE, /* The one and only. */
+ bfd_default_compatible,
+ bfd_default_scan,
+ bfd_arch_default_fill,
+ 0,
+ },
+ };
+
const bfd_arch_info_type bfd_ft32_arch =
{
32, /* 32 bits in a word. */
@@ -37,5 +71,5 @@ const bfd_arch_info_type bfd_ft32_arch =
bfd_default_compatible,
bfd_default_scan,
bfd_arch_default_fill,
- 0,
+ arch_info_struct,
};