Prevent a buffer overrun error when attempting to parse a corrupt ELF file.
[deliverable/binutils-gdb.git] / bfd / cpu-rx.c
index 677c49019aace5c005da457d130ea7a2b8952267..821edeb590b0f679db75a8578712f2a4dc1c66d6 100644 (file)
@@ -1,5 +1,5 @@
 /* BFD support for the RX processor.
-   Copyright (C) 2008-2014 Free Software Foundation, Inc.
+   Copyright (C) 2008-2019 Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
 
@@ -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.  */
   },
 };
This page took 0.024372 seconds and 4 git commands to generate.