]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
From Brad Lucier <lucier@math.purdue.edu>:
authorIan Lance Taylor <ian@airs.com>
Mon, 28 Feb 2000 03:31:50 +0000 (03:31 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 28 Feb 2000 03:31:50 +0000 (03:31 +0000)
* readelf.c (process_dynamic_segment): Add cast to make sure
argument to %* is int.

binutils/ChangeLog
binutils/readelf.c

index 728c6cf0bb5151df307b77803f92263c403c9401..5771febfea3df3e853092af7db9cc95c1d729b11 100644 (file)
@@ -1,3 +1,9 @@
+2000-02-27  Ian Lance Taylor  <ian@zembu.com>
+
+       From Brad Lucier <lucier@math.purdue.edu>:
+       * readelf.c (process_dynamic_segment): Add cast to make sure
+       argument to %* is int.
+
 2000-02-25  H.J. Lu  <hjl@gnu.org>
 
        * configure.in (AC_SEARCH_LIBS): Pass m, not -lm.
index 604b39a429f5955c13243b76dc1cc36d149ccf23..2e4fdc7fee9b0e324b1a0b1fdadb76a9dad84718 100644 (file)
@@ -3168,11 +3168,14 @@ process_dynamic_segment (file)
     {
       if (do_dynamic)
        {
+         const char *dtype;
+
          putchar (' ');
          print_vma (entry->d_tag, FULL_HEX);
-         printf (" (%s)%*s",
-                 get_dynamic_type (entry->d_tag),
-                 (is_32bit_elf ? 27 : 19) - strlen (get_dynamic_type (entry->d_tag)),
+         dtype = get_dynamic_type (entry->d_tag);
+         printf (" (%s)%*s", dtype,
+                 ((is_32bit_elf ? 27 : 19)
+                  - (int) strlen (dtype)),
                  " ");
        }