aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-rx.c
diff options
context:
space:
mode:
authorYoshinori Sato <ysato@users.sourceforge.jp>2018-12-25 19:58:54 +0900
committerYoshinori Sato <ysato@users.sourceforge.jp>2019-01-05 22:52:53 +0900
commitc8c89dac38c723a2dcff9beceb9e7c09b0c5f3d4 (patch)
treedad3db2bdd1fb0b46e8f20b507c20749c6e0ccf4 /bfd/elf32-rx.c
parent6a25bee8d049d3b51cea9e10f487fc04c792dd66 (diff)
downloadgdb-c8c89dac38c723a2dcff9beceb9e7c09b0c5f3d4.zip
gdb-c8c89dac38c723a2dcff9beceb9e7c09b0c5f3d4.tar.gz
gdb-c8c89dac38c723a2dcff9beceb9e7c09b0c5f3d4.tar.bz2
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/elf32-rx.c')
-rw-r--r--bfd/elf32-rx.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/bfd/elf32-rx.c b/bfd/elf32-rx.c
index e28edb6..0b5f983 100644
--- a/bfd/elf32-rx.c
+++ b/bfd/elf32-rx.c
@@ -3212,7 +3212,12 @@ elf32_rx_machine (bfd * abfd ATTRIBUTE_UNUSED)
For now we assume that the flags are OK. */
if ((elf_elfheader (abfd)->e_flags & EF_RX_CPU_MASK) == EF_RX_CPU_RX)
#endif
- return bfd_mach_rx;
+ if ((elf_elfheader (abfd)->e_flags & E_FLAG_RX_V2))
+ return bfd_mach_rx_v2;
+ else if ((elf_elfheader (abfd)->e_flags & E_FLAG_RX_V3))
+ return bfd_mach_rx_v3;
+ else
+ return bfd_mach_rx;
return 0;
}