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

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