From e699b9ff019e7c040ad82b8d3d8d64f8b177dc94 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 28 Feb 2000 03:31:50 +0000 Subject: [PATCH] From Brad Lucier : * readelf.c (process_dynamic_segment): Add cast to make sure argument to %* is int. --- binutils/ChangeLog | 6 ++++++ binutils/readelf.c | 9 ++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 728c6cf0bb5..5771febfea3 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2000-02-27 Ian Lance Taylor + + From Brad Lucier : + * readelf.c (process_dynamic_segment): Add cast to make sure + argument to %* is int. + 2000-02-25 H.J. Lu * configure.in (AC_SEARCH_LIBS): Pass m, not -lm. diff --git a/binutils/readelf.c b/binutils/readelf.c index 604b39a429f..2e4fdc7fee9 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -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)), " "); } -- 2.30.2