Blame SOURCES/binutils-disassembling-efi-files.patch

0e5f8d
diff -rup binutils.orig/bfd/coffgen.c binutils-2.31.1/bfd/coffgen.c
0e5f8d
--- binutils.orig/bfd/coffgen.c	2019-03-06 08:49:19.500586870 +0000
0e5f8d
+++ binutils-2.31.1/bfd/coffgen.c	2019-03-06 08:49:45.798394582 +0000
0e5f8d
@@ -2289,7 +2289,7 @@ coff_find_nearest_line_with_names (bfd *
0e5f8d
      information.  So try again, using a bias against the address sought.  */
0e5f8d
   if (coff_data (abfd)->dwarf2_find_line_info != NULL)
0e5f8d
     {
0e5f8d
-      bfd_signed_vma bias;
0e5f8d
+      bfd_signed_vma bias = 0;
0e5f8d
 
0e5f8d
       /* Create a cache of the result for the next call.  */
0e5f8d
       if (sec_data == NULL && section->owner == abfd)
0e5f8d
@@ -2301,10 +2301,11 @@ coff_find_nearest_line_with_names (bfd *
0e5f8d
 
0e5f8d
       if (sec_data != NULL && sec_data->saved_bias)
0e5f8d
 	bias = sec_data->saved_bias;
0e5f8d
-      else
0e5f8d
+      else if (symbols)
0e5f8d
 	{
0e5f8d
 	  bias = _bfd_dwarf2_find_symbol_bias (symbols,
0e5f8d
 					       & coff_data (abfd)->dwarf2_find_line_info);
0e5f8d
+
0e5f8d
 	  if (sec_data)
0e5f8d
 	    {
0e5f8d
 	      sec_data->saved_bias = TRUE;
0e5f8d
Only in binutils-2.31.1/bfd: coffgen.c.orig
0e5f8d
diff -rup binutils.orig/bfd/dwarf2.c binutils-2.31.1/bfd/dwarf2.c
0e5f8d
--- binutils.orig/bfd/dwarf2.c	2019-03-06 08:49:19.498586884 +0000
0e5f8d
+++ binutils-2.31.1/bfd/dwarf2.c	2019-03-06 08:49:45.799394575 +0000
0e5f8d
@@ -4463,7 +4463,7 @@ _bfd_dwarf2_find_symbol_bias (asymbol **
0e5f8d
 
0e5f8d
   stash = (struct dwarf2_debug *) *pinfo;
0e5f8d
 
0e5f8d
-  if (stash == NULL)
0e5f8d
+  if (stash == NULL || symbols == NULL)
0e5f8d
     return 0;
0e5f8d
 
0e5f8d
   for (unit = stash->all_comp_units; unit; unit = unit->next_unit)
0e5f8d
Only in binutils-2.31.1/bfd: dwarf2.c.orig