aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2000-02-28 03:31:50 +0000
committerIan Lance Taylor <ian@airs.com>2000-02-28 03:31:50 +0000
commite699b9ff019e7c040ad82b8d3d8d64f8b177dc94 (patch)
treefa7ebe2f41f92c00cc22e364e87eda02d40f6705 /binutils/readelf.c
parent21b105119f360892f17d5c3cead5ef98b61f98fc (diff)
downloadgdb-e699b9ff019e7c040ad82b8d3d8d64f8b177dc94.zip
gdb-e699b9ff019e7c040ad82b8d3d8d64f8b177dc94.tar.gz
gdb-e699b9ff019e7c040ad82b8d3d8d64f8b177dc94.tar.bz2
From Brad Lucier <lucier@math.purdue.edu>:
* readelf.c (process_dynamic_segment): Add cast to make sure argument to %* is int.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 604b39a..2e4fdc7 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)),
" ");
}