PATCH: Enlarge type field in readelf

H. J. Lu hjl@lucon.org
Tue May 6 19:57:00 GMT 2003


IA-64 has a relocation R_IA64_LTOFF_FPTR32MSB, which has 22 characters.
But the wide output only displays 21 characters. Here is a patch.


H.J.
-------------- next part --------------
2003-05-06  H.J. Lu <hjl@gnu.org>

	* readelf.c (dump_relocations): Enlarge the type field in wide
	output by one character.

--- binutils/readelf.c.type	2003-05-06 09:22:44.000000000 -0700
+++ binutils/readelf.c	2003-05-06 12:52:25.000000000 -0700
@@ -1071,14 +1071,14 @@ dump_relocations (file, rel_offset, rel_
       if (is_rela)
 	{
 	  if (do_wide)
-	    printf (_("    Offset             Info            Type               Symbol's Value  Symbol's Name + Addend\n"));
+	    printf (_("    Offset             Info             Type               Symbol's Value  Symbol's Name + Addend\n"));
 	  else
 	    printf (_("  Offset          Info           Type           Sym. Value    Sym. Name + Addend\n"));
 	}
       else
 	{
 	  if (do_wide)
-	    printf (_("    Offset             Info            Type               Symbol's Value  Symbol's Name\n"));
+	    printf (_("    Offset             Info             Type               Symbol's Value  Symbol's Name\n"));
 	  else
 	    printf (_("  Offset          Info           Type           Sym. Value    Sym. Name\n"));
 	}
@@ -1361,7 +1361,7 @@ dump_relocations (file, rel_offset, rel_
 	printf (_("unrecognized: %-7lx"), type);
 #endif
       else
-	printf (do_wide ? "%-21.21s" : "%-17.17s", rtype);
+	printf (do_wide ? "%-22.22s" : "%-17.17s", rtype);
 
       if (symtab_index)
 	{


More information about the Binutils mailing list