* dwarf.c (display_debug_ranges): Don't report more than one use
of the same range set as an overlap.
This commit is contained in:
parent
d9fa356624
commit
a2ff7a4bb4
2 changed files with 14 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2012-05-17 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* dwarf.c (display_debug_ranges): Don't report more than one use
|
||||||
|
of the same range set as an overlap.
|
||||||
|
|
||||||
2012-05-16 Daniel Richard G. <skunk@iskunk.org>
|
2012-05-16 Daniel Richard G. <skunk@iskunk.org>
|
||||||
|
|
||||||
PR binutils/13558
|
PR binutils/13558
|
||||||
|
|
|
@ -4419,6 +4419,7 @@ display_debug_ranges (struct dwarf_section *section,
|
||||||
void *file ATTRIBUTE_UNUSED)
|
void *file ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
unsigned char *start = section->start;
|
unsigned char *start = section->start;
|
||||||
|
unsigned char *last_start = start;
|
||||||
unsigned long bytes;
|
unsigned long bytes;
|
||||||
unsigned char *section_begin = start;
|
unsigned char *section_begin = start;
|
||||||
unsigned int num_range_list, i;
|
unsigned int num_range_list, i;
|
||||||
|
@ -4502,11 +4503,16 @@ display_debug_ranges (struct dwarf_section *section,
|
||||||
(unsigned long) (start - section_begin),
|
(unsigned long) (start - section_begin),
|
||||||
(unsigned long) (next - section_begin), section->name);
|
(unsigned long) (next - section_begin), section->name);
|
||||||
else if (start > next)
|
else if (start > next)
|
||||||
|
{
|
||||||
|
if (next == last_start)
|
||||||
|
continue;
|
||||||
warn (_("There is an overlap [0x%lx - 0x%lx] in %s section.\n"),
|
warn (_("There is an overlap [0x%lx - 0x%lx] in %s section.\n"),
|
||||||
(unsigned long) (start - section_begin),
|
(unsigned long) (start - section_begin),
|
||||||
(unsigned long) (next - section_begin), section->name);
|
(unsigned long) (next - section_begin), section->name);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
start = next;
|
start = next;
|
||||||
|
last_start = next;
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue