Start mass upgrade
[dragora.git] / patches / binutils / 2.35 / binutils-DWARF-5-line-number-parsing.patch
blob15849f9ce74561a482e9169bc970581c95d9713e
1 --- binutils.orig/bfd/dwarf2.c 2021-01-25 11:26:26.761405305 +0000
2 +++ binutils-2.35.1/bfd/dwarf2.c 2021-01-25 11:28:51.838572824 +0000
3 @@ -3252,9 +3252,11 @@ read_rnglists (struct comp_unit *unit, s
4 low_pc = base_address;
5 low_pc += _bfd_safe_read_leb128 (abfd, rngs_ptr, &bytes_read,
6 FALSE, rngs_end);
7 + rngs_ptr += bytes_read;
8 high_pc = base_address;
9 high_pc += _bfd_safe_read_leb128 (abfd, rngs_ptr, &bytes_read,
10 FALSE, rngs_end);
11 + rngs_ptr += bytes_read;
12 break;
14 case DW_RLE_start_end:
15 @@ -3274,9 +3276,6 @@ read_rnglists (struct comp_unit *unit, s
16 return FALSE;
19 - if ((low_pc == 0 && high_pc == 0) || low_pc == high_pc)
20 - return FALSE;
22 if (!arange_add (unit, arange, low_pc, high_pc))
23 return FALSE;