diff options
author | Nick Clifton <nickc@redhat.com> | 2007-11-21 11:58:00 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-11-21 11:58:00 +0000 |
commit | 031cd65fb243f8dc3bddfa4a4862a710ff1afde7 (patch) | |
tree | f966063f5720e61cda02144ed1c8bd31d3d33da2 /binutils/dwarf.c | |
parent | 123680036c40f8ed10bbdf9da800e71b48b3a4fc (diff) | |
download | binutils-031cd65fb243f8dc3bddfa4a4862a710ff1afde7.zip binutils-031cd65fb243f8dc3bddfa4a4862a710ff1afde7.tar.gz binutils-031cd65fb243f8dc3bddfa4a4862a710ff1afde7.tar.bz2 |
* 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.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r-- | binutils/dwarf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 0e72d13..a673564 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -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; } |