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] Obvious IA-64 readelf fix


Hi!

Guess the patch speaks for itself.  Commited as obvious.

2003-07-01  Jakub Jelinek  <jakub@redhat.com>

	* readelf.c (dynamic_segment_ia64_val): Print address and newline
	for sections by default.  Comment fix.

--- binutils/readelf.c	26 Jun 2003 12:46:17 -0000	1.212
+++ binutils/readelf.c	1 Jul 2003 15:50:09 -0000
@@ -4671,12 +4671,17 @@ dynamic_segment_ia64_val (entry)
   switch (entry->d_tag)
     {
     case DT_IA_64_PLT_RESERVE: 
-      /* First 3 bytes reserved.  */
+      /* First 3 slots reserved.  */
       print_vma (entry->d_un.d_ptr, PREFIX_HEX);
       printf (" -- ");
       print_vma (entry->d_un.d_ptr + (3 * 8), PREFIX_HEX);
-      printf ("\n");
+      break;
+
+    default:
+      print_vma (entry->d_un.d_ptr, PREFIX_HEX);
+      break;
     }
+  putchar ('\n');
 }
 
 static int

	Jakub


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