* dwarf.c (display_debug_loc): Issue a warning if there are bytes at the end

of the .debug_loc section which are not referenced by any attribute in the
  .debug_info section.
This commit is contained in:
Nick Clifton 2007-11-21 11:58:00 +00:00
parent 123680036c
commit 031cd65fb2
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2007-11-20 Nick Clifton <nickc@redhat.com>
* dwarf.c (display_debug_loc): Issue a warning if there are bytes
at the end of the .debug_loc section which are not referenced by
any attribute in the .debug_info section.
2007-11-19 Nick Clifton <nickc@redhat.com>
* readelf.c (is_32bit_abs_reloc): Add support for NIOS relocs.

View File

@ -2624,6 +2624,10 @@ display_debug_loc (struct dwarf_section *section, void *file)
}
}
}
if (start < section_end)
warn (_("There are %ld unused bytes at the end of section %s\n"),
section_end - start, section->name);
return 1;
}