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

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