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

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