diff options
author | Tom Tromey <tromey@redhat.com> | 2011-04-26 13:07:46 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-04-26 13:07:46 +0000 |
commit | 970daf6819a42df4b9efa3ac6c2b5a09d95905c7 (patch) | |
tree | 001c09401c03746a5b8068951312341a659c5932 /binutils | |
parent | eebab6aea998353e1d7381a42e2bebcd7a2fda2c (diff) | |
download | binutils-redhat-970daf6819a42df4b9efa3ac6c2b5a09d95905c7.tar.gz |
* readelf.c (process_corefile_note_segment): Change header field
widths.
(process_note): Change field widths.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/readelf.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 4db85724e5..22e6049516 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,11 @@ 2011-04-21 Tom Tromey <tromey@redhat.com> + * readelf.c (process_corefile_note_segment): Change header field + widths. + (process_note): Change field widths. + +2011-04-21 Tom Tromey <tromey@redhat.com> + * readelf.c (print_gnu_note): New function. (process_note): Use it. diff --git a/binutils/readelf.c b/binutils/readelf.c index 2cc8cf3635..1ff1fceb3d 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -12501,7 +12501,7 @@ process_note (Elf_Internal_Note * pnote) note type strings. */ nt = get_note_type (pnote->type); - printf (" %-10s\t0x%08lx\t%s\n", name, pnote->descsz, nt); + printf (" %-20s 0x%08lx\t%s\n", name, pnote->descsz, nt); if (const_strneq (pnote->namedata, "IPF/VMS")) return print_ia64_vms_note (pnote); @@ -12531,7 +12531,7 @@ process_corefile_note_segment (FILE * file, bfd_vma offset, bfd_vma length) printf (_("\nNotes at offset 0x%08lx with length 0x%08lx:\n"), (unsigned long) offset, (unsigned long) length); - printf (_(" Owner\t\tData size\tDescription\n")); + printf (_(" %-20s %10s\tDescription\n"), _("Owner"), _("Data size")); while (external < (Elf_External_Note *) ((char *) pnotes + length)) { |