diff options
author | Yoshinori Sato <ysato@users.sourceforge.jp> | 2018-12-25 19:58:54 +0900 |
---|---|---|
committer | Yoshinori Sato <ysato@users.sourceforge.jp> | 2019-01-05 22:52:53 +0900 |
commit | c8c89dac38c723a2dcff9beceb9e7c09b0c5f3d4 (patch) | |
tree | dad3db2bdd1fb0b46e8f20b507c20749c6e0ccf4 /bfd/cpu-rx.c | |
parent | 6a25bee8d049d3b51cea9e10f487fc04c792dd66 (diff) | |
download | binutils-gdb-c8c89dac38c723a2dcff9beceb9e7c09b0c5f3d4.tar.gz |
RX: bfd - Add RXv3 support.
* bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
* bfd/bfd-in2.h: Regenerate.
* bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
* bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
Diffstat (limited to 'bfd/cpu-rx.c')
-rw-r--r-- | bfd/cpu-rx.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/bfd/cpu-rx.c b/bfd/cpu-rx.c index 448f1e9b33c..821edeb590b 100644 --- a/bfd/cpu-rx.c +++ b/bfd/cpu-rx.c @@ -37,6 +37,36 @@ static const bfd_arch_info_type arch_info_struct[] = bfd_default_compatible, /* Architecture comparison fn. */ bfd_default_scan, /* String to architecture convert fn. */ bfd_arch_default_fill, /* Default fill. */ + &arch_info_struct[1] /* Next in list. */ + }, + { + 32, /* Bits per word. */ + 32, /* Bits per address. */ + 8, /* Bits per byte. */ + bfd_arch_rx, /* Architecture. */ + bfd_mach_rx_v2, /* Machine. */ + "rx:v2", /* Architecture name. */ + "rx:v2", /* Printable name. */ + 3, /* Section align power. */ + FALSE, /* The default ? */ + bfd_default_compatible, /* Architecture comparison fn. */ + bfd_default_scan, /* String to architecture convert fn. */ + bfd_arch_default_fill, /* Default fill. */ + &arch_info_struct[2] /* Next in list. */ + }, + { + 32, /* Bits per word. */ + 32, /* Bits per address. */ + 8, /* Bits per byte. */ + bfd_arch_rx, /* Architecture. */ + bfd_mach_rx_v3, /* Machine. */ + "rx:v3", /* Architecture name. */ + "rx:v3", /* Printable name. */ + 3, /* Section align power. */ + FALSE, /* The default ? */ + bfd_default_compatible, /* Architecture comparison fn. */ + bfd_default_scan, /* String to architecture convert fn. */ + bfd_arch_default_fill, /* Default fill. */ NULL /* Next in list. */ }, }; |