294ee03
diff -rup binutils.orig/gold/gdb-index.cc binutils-2.34.0/gold/gdb-index.cc
294ee03
--- binutils.orig/gold/gdb-index.cc	2020-07-24 09:12:29.241306445 +0100
294ee03
+++ binutils-2.34.0/gold/gdb-index.cc	2020-07-24 09:15:48.332095898 +0100
294ee03
@@ -817,7 +817,7 @@ Gdb_index_info_reader::get_qualified_nam
294ee03
 void
294ee03
 Gdb_index_info_reader::record_cu_ranges(Dwarf_die* die)
294ee03
 {
294ee03
-  unsigned int shndx;
294ee03
+  unsigned int shndx = 0;
294ee03
   unsigned int shndx2;
294ee03
 
294ee03
   off_t ranges_offset = die->ref_attribute(elfcpp::DW_AT_ranges, &shndx);
294ee03
diff -rup binutils.orig/gold/layout.cc binutils-2.34.0/gold/layout.cc
294ee03
--- binutils.orig/gold/layout.cc	2020-07-24 09:12:29.243306433 +0100
294ee03
+++ binutils-2.34.0/gold/layout.cc	2020-07-24 09:15:11.464320064 +0100
294ee03
@@ -1986,7 +1986,7 @@ Layout::attach_allocated_section_to_segm
294ee03
   seg_flags |= os->extra_segment_flags();
294ee03
 
294ee03
   // Check for --section-start.
294ee03
-  uint64_t addr;
294ee03
+  uint64_t addr = 0;
294ee03
   bool is_address_set = parameters->options().section_start(os->name(), &addr);
294ee03
 
294ee03
   // In general the only thing we really care about for PT_LOAD
294ee03
diff -rup binutils.orig/binutils/dlltool.c binutils-2.34.0/binutils/dlltool.c
294ee03
--- binutils.orig/binutils/dlltool.c	2020-07-24 09:12:28.974308069 +0100
294ee03
+++ binutils-2.34.0/binutils/dlltool.c	2020-07-24 12:09:37.527121295 +0100
294ee03
@@ -1305,7 +1305,7 @@ run (const char *what, char *args)
294ee03
   int pid, wait_status;
294ee03
   int i;
294ee03
   const char **argv;
294ee03
-  char *errmsg_fmt, *errmsg_arg;
294ee03
+  char *errmsg_fmt = "", *errmsg_arg = "";
294ee03
   char *temp_base = choose_temp_base ();
294ee03
 
294ee03
   inform (_("run: %s %s"), what, args);
294ee03
diff -rup binutils.orig/gas/config/tc-arm.c binutils-2.34.0/gas/config/tc-arm.c
294ee03
--- binutils.orig/gas/config/tc-arm.c	2020-07-24 09:12:32.368287432 +0100
294ee03
+++ binutils-2.34.0/gas/config/tc-arm.c	2020-07-24 12:14:19.842360634 +0100
294ee03
@@ -28416,9 +28416,12 @@ md_apply_fix (fixS *	fixP,
294ee03
 	 perform relaxation.  */
294ee03
       if (value == -2)
294ee03
 	{
294ee03
-	  newval = md_chars_to_number (buf, THUMB_SIZE);
294ee03
-	  newval = 0xbf00; /* NOP encoding T1 */
294ee03
-	  md_number_to_chars (buf, newval, THUMB_SIZE);
294ee03
+	  if (fixP->fx_done || !seg->use_rela_p)
294ee03
+	    {
294ee03
+	      newval = md_chars_to_number (buf, THUMB_SIZE);
294ee03
+	      newval = 0xbf00; /* NOP encoding T1 */
294ee03
+	      md_number_to_chars (buf, newval, THUMB_SIZE);
294ee03
+	    }
294ee03
 	}
294ee03
       else
294ee03
 	{
294ee03
@@ -28631,17 +28634,14 @@ md_apply_fix (fixS *	fixP,
294ee03
     case BFD_RELOC_ARM_GOTFUNCDESC:
294ee03
     case BFD_RELOC_ARM_GOTOFFFUNCDESC:
294ee03
     case BFD_RELOC_ARM_FUNCDESC:
294ee03
-      if (arm_fdpic)
294ee03
-	{
294ee03
-	  if (fixP->fx_done || !seg->use_rela_p)
294ee03
-	    md_number_to_chars (buf, 0, 4);
294ee03
-	}
294ee03
-      else
294ee03
+      if (!arm_fdpic)
294ee03
 	{
294ee03
 	  as_bad_where (fixP->fx_file, fixP->fx_line,
294ee03
 			_("Relocation supported only in FDPIC mode"));
294ee03
-      }
294ee03
-      break;
294ee03
+	  break;
294ee03
+	}
294ee03
+      value = 0;
294ee03
+      /* Fall through.  */
294ee03
 #endif
294ee03
 
294ee03
     case BFD_RELOC_RVA:
294ee03
diff -rup binutils.orig/gas/config/tc-arm.c binutils-2.34.0/gas/config/tc-arm.c
294ee03
--- binutils.orig/gas/config/tc-arm.c	2020-07-24 12:16:02.099719884 +0100
294ee03
+++ binutils-2.34.0/gas/config/tc-arm.c	2020-07-24 12:34:17.690858328 +0100
294ee03
@@ -28641,7 +28641,7 @@ md_apply_fix (fixS *	fixP,
294ee03
 	  break;
294ee03
 	}
294ee03
       value = 0;
294ee03
-      /* Fall through.  */
294ee03
+      goto fred;
294ee03
 #endif
294ee03
 
294ee03
     case BFD_RELOC_RVA:
294ee03
@@ -28653,6 +28653,7 @@ md_apply_fix (fixS *	fixP,
294ee03
 #ifdef TE_PE
294ee03
     case BFD_RELOC_32_SECREL:
294ee03
 #endif
294ee03
+    fred:
294ee03
       if (fixP->fx_done || !seg->use_rela_p)
294ee03
 #ifdef TE_WINCE
294ee03
 	/* For WinCE we only do this for pcrel fixups.  */
294ee03
diff -rup binutils.orig/gas/config/tc-arm.c binutils-2.34.0/gas/config/tc-arm.c
294ee03
--- binutils.orig/gas/config/tc-arm.c	2020-07-24 13:28:26.926553452 +0100
294ee03
+++ binutils-2.34.0/gas/config/tc-arm.c	2020-07-24 13:31:57.835215763 +0100
294ee03
@@ -28416,12 +28416,8 @@ md_apply_fix (fixS *	fixP,
294ee03
 	 perform relaxation.  */
294ee03
       if (value == -2)
294ee03
 	{
294ee03
-	  if (fixP->fx_done || !seg->use_rela_p)
294ee03
-	    {
294ee03
-	      newval = md_chars_to_number (buf, THUMB_SIZE);
294ee03
-	      newval = 0xbf00; /* NOP encoding T1 */
294ee03
-	      md_number_to_chars (buf, newval, THUMB_SIZE);
294ee03
-	    }
294ee03
+	  newval = 0xbf00; /* NOP encoding T1 */
294ee03
+	  goto jim;
294ee03
 	}
294ee03
       else
294ee03
 	{
294ee03
@@ -28432,6 +28428,7 @@ md_apply_fix (fixS *	fixP,
294ee03
 	    {
294ee03
 	      newval = md_chars_to_number (buf, THUMB_SIZE);
294ee03
 	      newval |= ((value & 0x3e) << 2) | ((value & 0x40) << 3);
294ee03
+	    jim:
294ee03
 	      md_number_to_chars (buf, newval, THUMB_SIZE);
294ee03
 	    }
294ee03
 	}
294ee03
diff -rup binutils.orig/binutils/mclex.c binutils-2.34.0/binutils/mclex.c
294ee03
--- binutils.orig/binutils/mclex.c	2020-07-24 13:28:26.297557441 +0100
294ee03
+++ binutils-2.34.0/binutils/mclex.c	2020-07-24 14:46:53.587940149 +0100
294ee03
@@ -207,7 +207,7 @@ enum_severity (int e)
294ee03
 static void
294ee03
 mc_add_keyword_ascii (const char *sz, int rid, const char *grp, rc_uint_type nv, const char *sv)
294ee03
 {
294ee03
-  unichar *usz, *usv = NULL;
294ee03
+  unichar *usz = NULL, *usv = NULL;
294ee03
   rc_uint_type usz_len;
294ee03
 
294ee03
   unicode_from_codepage (&usz_len, &usz, sz, CP_ACP);
294ee03
diff -rup binutils.orig/binutils/windmc.c binutils-2.34.0/binutils/windmc.c
294ee03
--- binutils.orig/binutils/windmc.c	2020-07-24 13:28:26.279557556 +0100
294ee03
+++ binutils-2.34.0/binutils/windmc.c	2020-07-24 14:48:05.460477478 +0100
294ee03
@@ -338,7 +338,7 @@ mc_add_node_lang (mc_node *root, const m
294ee03
 static char *
294ee03
 convert_unicode_to_ACP (const unichar *usz)
294ee03
 {
294ee03
-  char *s;
294ee03
+  char *s = NULL;
294ee03
   rc_uint_type l;
294ee03
 
294ee03
   if (! usz)
294ee03
@@ -607,10 +607,10 @@ mc_generate_bin_item (mc_node_lang *n, r
294ee03
   else
294ee03
     {
294ee03
       rc_uint_type txt_len, l;
294ee03
-      char *cvt_txt;
294ee03
+      char *cvt_txt = NULL;
294ee03
 
294ee03
       codepage_from_unicode( &l, n->message, &cvt_txt, n->lang->lang_info.wincp);
294ee03
-      if (! cvt_txt)
294ee03
+      if (cvt_txt == NULL)
294ee03
 	fatal ("Failed to convert message to language codepage.\n");
294ee03
       txt_len = strlen (cvt_txt);
294ee03
       if (mcset_automatic_null_termination && txt_len > 0)
294ee03
@@ -1107,7 +1107,7 @@ main (int argc, char **argv)
294ee03
 
294ee03
   /* Load the input file and do code page transformations to UTF16.  */
294ee03
   {
294ee03
-    unichar *u;
294ee03
+    unichar *u = NULL;
294ee03
     rc_uint_type ul;
294ee03
     char *buff;
294ee03
     bfd_size_type flen;
294ee03
--- binutils.orig/binutils/srconv.c	2020-07-24 15:37:25.847459208 +0100
294ee03
+++ binutils-2.34.0/binutils/srconv.c	2020-07-24 15:39:12.853773423 +0100
294ee03
@@ -316,6 +316,7 @@ wr_hd (struct coff_ofile *p)
294ee03
   struct IT_hd hd;
294ee03
 
294ee03
   hd.spare1 = 0;
294ee03
+  hd.spare2 = 0;
294ee03
   if (bfd_get_file_flags (abfd) & EXEC_P)
294ee03
     hd.mt = MTYPE_ABS_LM;
294ee03
   else