From b0660586abeba8d5d48a261b0b13128db267f6a8 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 4 Jan 2005 23:37:18 +0000 Subject: [PATCH] 2005-01-04 H.J. Lu * readelf.c (display_debug_loc): Display offsets for hole and overlap. (display_debug_str): Add a newline at the end. --- binutils/ChangeLog | 6 ++++++ binutils/readelf.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 755b5e7da32..8bfc837399e 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2005-01-04 H.J. Lu + + * 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 PR binutils/630 diff --git a/binutils/readelf.c b/binutils/readelf.c index d81907caebc..4c74a37f7f5 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -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; } -- 2.30.2