Blame SOURCES/binutils-2.27-remove-dwarf2-minmax.patch

43b479
--- binutils.orig/bfd/dwarf2.c	2017-08-08 17:40:39.084385407 +0100
43b479
+++ binutils-2.27/bfd/dwarf2.c	2017-08-08 17:41:34.237754733 +0100
43b479
@@ -215,9 +215,6 @@ struct comp_unit
43b479
   /* Linked list of the low and high address ranges contained in this
43b479
      compilation unit as specified in the compilation unit header.  */
43b479
   struct arange arange;
43b479
-  /* A single arange containing the lowest and highest
43b479
-     addresses covered by the compilation unit.  */
43b479
-  struct arange minmax;
43b479
 
43b479
   /* The DW_AT_name attribute (for error messages).  */
43b479
   char *name;
43b479
@@ -1540,16 +1537,11 @@ arange_add (struct comp_unit *unit, stru
43b479
   /* If the first arange is empty, use it.  */
43b479
   if (first_arange->high == 0)
43b479
     {
43b479
-      unit->minmax.low = first_arange->low = low_pc;
43b479
-      unit->minmax.high = first_arange->high = high_pc;
43b479
+      first_arange->low = low_pc;
43b479
+      first_arange->high = high_pc;
43b479
       return TRUE;
43b479
     }
43b479
 
43b479
-  if (unit->minmax.low > low_pc)
43b479
-    unit->minmax.low = low_pc;
43b479
-  if (unit->minmax.high < high_pc)
43b479
-    unit->minmax.high = high_pc;
43b479
-  
43b479
   /* Next see if we can cheaply extend an existing range.  */
43b479
   arange = first_arange;
43b479
   do
43b479
@@ -3151,9 +3143,6 @@ comp_unit_contains_address (struct comp_
43b479
   if (unit->error)
43b479
     return FALSE;
43b479
 
43b479
-  if (unit->minmax.high < addr || unit->minmax.low > addr)
43b479
-    return FALSE;
43b479
-
43b479
   /* We know that the address *might* be contained within this comp
43b479
      unit, but we cannot be sure until we check the specific ranges.  */
43b479
   arange = &unit->arange;