PATCH: Indent version names

H. J. Lu hjl@lucon.org
Fri Sep 19 15:30:00 GMT 2003


The current readelf -V outputs:

Version needs section '.gnu.version_r' contains 1 entries:
 Addr: 0x0000000008048e5c  Offset: 0x000e5c  Link to section: 5 (.dynstr)
  000000: Version: 1  File: libc.so.6  Cnt: 6
  0x0010: Name: GLIBC_2.2.3  Flags: none  Version: 7
  0x0020: Name: GLIBC_2.1.3  Flags: none  Version: 6
  0x0030: Name: GLIBC_2.1  Flags: none  Version: 5
  0x0040: Name: GLIBC_2.3  Flags: none  Version: 4
  0x0050: Name: GLIBC_2.2  Flags: none  Version: 3
  0x0060: Name: GLIBC_2.0  Flags: none  Version: 2

This patch changes it to 

Version needs section '.gnu.version_r' contains 1 entries:
 Addr: 0x0000000008048e5c  Offset: 0x000e5c  Link to section: 5 (.dynstr)
  000000: Version: 1  File: libc.so.6  Cnt: 6
  0x0010:   Name: GLIBC_2.2.3  Flags: none  Version: 7
  0x0020:   Name: GLIBC_2.1.3  Flags: none  Version: 6
  0x0030:   Name: GLIBC_2.1  Flags: none  Version: 5
  0x0040:   Name: GLIBC_2.3  Flags: none  Version: 4
  0x0050:   Name: GLIBC_2.2  Flags: none  Version: 3
  0x0060:   Name: GLIBC_2.0  Flags: none  Version: 2

to show those version names are in libc.so.6.


H.J.
----
2003-09-19  H.J. Lu  <hongjiu.lu@intel.com>

	* readelf.c (process_version_sections): Indent version names.

--- binutils/readelf.c.vers	2003-09-04 08:59:22.000000000 -0700
+++ binutils/readelf.c	2003-09-17 12:04:48.000000000 -0700
@@ -5226,10 +5226,10 @@ process_version_sections (FILE *file)
 		    aux.vna_next  = BYTE_GET (eaux->vna_next);
 
 		    if (dynamic_strings)
-		      printf (_("  %#06x: Name: %s"),
+		      printf (_("  %#06x:   Name: %s"),
 			      isum, dynamic_strings + aux.vna_name);
 		    else
-		      printf (_("  %#06x: Name index: %lx"),
+		      printf (_("  %#06x:   Name index: %lx"),
 			      isum, aux.vna_name);
 
 		    printf (_("  Flags: %s  Version: %d\n"),



More information about the Binutils mailing list