This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix objdump output formatting


Hi All,

this fixes the output width of the header dump for 32 bit architectures
when BFD64 is enabled.


Thiemo


2002-05-11  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>

	/binutils/ChangeLog
	* objdump.c (dump_headers): Fix output formatting for 32-bit arches
	in BFD64 enabled toolchain.


diff -BurpNX /bigdisk/src/binutils-exclude source-orig/binutils/objdump.c source/binutils/objdump.c
--- source-orig/binutils/objdump.c	Sat Feb  2 12:53:28 2002
+++ source/binutils/objdump.c	Thu Apr 18 17:30:09 2002
@@ -361,7 +361,10 @@ dump_headers (abfd)
 #ifndef BFD64
   printf (_("Idx Name          Size      VMA       LMA       File off  Algn"));
 #else
-  printf (_("Idx Name          Size      VMA               LMA               File off  Algn"));
+  if (bfd_get_arch_size (abfd) != 32)
+    printf (_("Idx Name          Size      VMA               LMA               File off  Algn"));
+  else
+    printf (_("Idx Name          Size      VMA       LMA       File off  Algn"));
 #endif
 
   if (wide_output)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]