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