diff options
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/dwarf2.c | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9d23a8a..949a644 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2021-01-24 H.J. Lu <hongjiu.lu@intel.com> + + PR binutils/27231 + * dwarf2.c (read_rnglists): Ignore empty range when parsing line + number tables. + 2021-01-23 H.J. Lu <hongjiu.lu@intel.com> PR binutils/27231 diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 292d60c..240138d 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -3289,9 +3289,6 @@ read_rnglists (struct comp_unit *unit, struct arange *arange, return FALSE; } - if ((low_pc == 0 && high_pc == 0) || low_pc == high_pc) - return FALSE; - if (!arange_add (unit, arange, low_pc, high_pc)) return FALSE; } |