2005-01-04 H.J. Lu <hongjiu.lu@intel.com>

* readelf.c (display_debug_loc): Display offsets for hole and
	overlap.
	(display_debug_str): Add a newline at the end.
This commit is contained in:
H.J. Lu 2005-01-04 23:37:18 +00:00
parent 80837d18f6
commit b0660586ab
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2005-01-04 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (display_debug_loc): Display offsets for hole and
overlap.
(display_debug_str): Add a newline at the end.
2005-01-04 Armin Diehl <diehl@nordrhein.de>
PR binutils/630

View File

@ -9483,10 +9483,10 @@ display_debug_loc (Elf_Internal_Shdr *section,
{
if (start < next)
warn (_("There is a hole [0x%lx - 0x%lx] in .debug_loc section.\n"),
start, next);
start - section_begin, next - section_begin);
else if (start > next)
warn (_("There is an overlap [0x%lx - 0x%lx] in .debug_loc section.\n"),
start, next);
start - section_begin, next - section_begin);
}
start = next;
@ -9587,6 +9587,8 @@ display_debug_str (Elf_Internal_Shdr *section,
bytes -= lbytes;
}
putchar ('\n');
return 1;
}