Automatic date update in version.in
[deliverable/binutils-gdb.git] / bfd / elf32-rx.c
index e28edb6f689b4ca818aff923d1dd3d2ea2d4a5bd..0b5f983a9a6785968475800db624fc81115b86ab 100644 (file)
@@ -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;
 }
This page took 0.02294 seconds and 4 git commands to generate.