This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Minor readelf update
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Tue, 4 Jan 2005 15:36:38 -0800
- Subject: Re: PATCH: Minor readelf update
- References: <20050104223930.GA31989@lucon.org>
On Tue, Jan 04, 2005 at 02:39:30PM -0800, H. J. Lu wrote:
> readelf outputs
>
> Contents of the .debug_str section:
>
> 0x00000000 5f5f6f66 665f7400 5f494f5f 72656164 __off_t._IO_read
> ...
> 0x00000240 74655f62 61736500 72657375 6c7400 te_base.result.
> Contents of the .debug_loc section:
>
> This patch adds a newline. I will check it in shortly.
>
This is the patch I will check in.
H.J.
----
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.
--- readelf.c.orig 2005-01-04 14:30:34.096675262 -0800
+++ readelf.c 2005-01-04 15:32:39.487003629 -0800
@@ -9483,10 +9483,10 @@ display_debug_loc (Elf_Internal_Shdr *se
{
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 *se
bytes -= lbytes;
}
+ putchar ('\n');
+
return 1;
}