ubsan: som.c undefined shift in som_set_reloc_info
[binutils-gdb.git] / bfd / cpu-nds32.c
index d40d56a82f4e9f127f861e5684ecbff46b683bb0..815614d18ec92db93ed2cab2c7ad97eafa13f1b7 100644 (file)
@@ -1,5 +1,5 @@
 /* BFD support for the NDS32 processor
-   Copyright (C) 2012-2014 Free Software Foundation, Inc.
+   Copyright (C) 2012-2022 Free Software Foundation, Inc.
    Contributed by Andes Technology Corporation.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -26,7 +26,7 @@
 
 #define N(number, print, default, next)  \
     {32, 32, 8, bfd_arch_nds32, number, "nds32", print, 4, default, \
-     bfd_default_compatible, bfd_default_scan, bfd_arch_default_fill, next }
+     bfd_default_compatible, bfd_default_scan, bfd_arch_default_fill, next, 0 }
 
 #define NEXT           &arch_info_struct[0]
 #define NDS32V2_NEXT   &arch_info_struct[1]
 
 static const bfd_arch_info_type arch_info_struct[] =
 {
-  N (bfd_mach_n1h, "n1h", FALSE, NDS32V2_NEXT),
-  N (bfd_mach_n1h_v2, "n1h_v2", FALSE, NDS32V3_NEXT),
-  N (bfd_mach_n1h_v3, "n1h_v3", FALSE, NDS32V3M_NEXT),
-  N (bfd_mach_n1h_v3m, "n1h_v3m", FALSE, NULL),
+  N (bfd_mach_n1h, "n1h", false, NDS32V2_NEXT),
+  N (bfd_mach_n1h_v2, "n1h_v2", false, NDS32V3_NEXT),
+  N (bfd_mach_n1h_v3, "n1h_v3", false, NDS32V3M_NEXT),
+  N (bfd_mach_n1h_v3m, "n1h_v3m", false, NULL),
 };
 
 const bfd_arch_info_type bfd_nds32_arch =
-  N (bfd_mach_n1, "n1h", TRUE, NEXT);
+  N (bfd_mach_n1, "n1", true, NEXT);