mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
fix Dwarf2 build with certain gcc versions
Older gcc reports: .../bfd/dwarf2.c: In function 'read_ranges': .../bfd/dwarf2.c:3107: error: comparison between signed and unsigned .../bfd/dwarf2.c: In function 'read_rnglists': .../bfd/dwarf2.c:3189: error: comparison between signed and unsigned Similarly for binutils/dwarf.c. Arrange for the left sides of the > to also be unsigned quantities.
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
2021-06-07 Jan Beulich <jbeulich@suse.com>
|
||||
|
||||
* dwarf.c (display_debug_aranges): Add u suffix to constant.
|
||||
|
||||
2021-05-29 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* objdump (usage): Add missing \n.
|
||||
|
@ -7284,7 +7284,7 @@ display_debug_aranges (struct dwarf_section *section,
|
||||
|
||||
start = end_ranges;
|
||||
|
||||
while (2 * address_size <= (size_t) (start - addr_ranges))
|
||||
while (2u * address_size <= (size_t) (start - addr_ranges))
|
||||
{
|
||||
SAFE_BYTE_GET_AND_INC (address, addr_ranges, address_size, start);
|
||||
SAFE_BYTE_GET_AND_INC (length, addr_ranges, address_size, start);
|
||||
|
Reference in New Issue
Block a user