aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2010-01-04 13:39:58 +0000
committerNick Clifton <nickc@redhat.com>2010-01-04 13:39:58 +0000
commitc975cc98812d1518ea614cb4c39ca7e771ccac16 (patch)
tree1e07daab0ebe22310fd21782fba607bc438b62cf
parent608fa8d35d1995a3366c901e8b754aacfab6ccc3 (diff)
downloadgdb-c975cc98812d1518ea614cb4c39ca7e771ccac16.zip
gdb-c975cc98812d1518ea614cb4c39ca7e771ccac16.tar.gz
gdb-c975cc98812d1518ea614cb4c39ca7e771ccac16.tar.bz2
PR 11128
* readelf.c (dump_section_as_strings): Use two separate invocations of printf() in order to work around bugs in the Solaris 8 implementation.
-rw-r--r--binutils/ChangeLog7
-rw-r--r--binutils/readelf.c5
2 files changed, 11 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 5b7415b..3dfc33a 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,12 @@
2010-01-04 Nick Clifton <nickc@redhat.com>
+ PR 11128
+ * readelf.c (dump_section_as_strings): Use two separate
+ invocations of printf() in order to work around bugs in
+ the Solaris 8 implementation.
+
+2010-01-04 Nick Clifton <nickc@redhat.com>
+
* po/ru/po: Updated Russian translation.
For older changes see ChangeLog-2009
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 956144d..fd44f2f 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -8624,7 +8624,10 @@ dump_section_as_strings (Elf_Internal_Shdr * section, FILE * file)
if (data < end)
{
#ifndef __MSVCRT__
- printf (" [%6tx] %s\n", data - start, data);
+ /* PR 11128: Use two separate invocations in order to work
+ around bugs in the Solaris 8 implementation of printf. */
+ printf (" [%6tx] ", data - start);
+ printf ("%s\n", data);
#else
printf (" [%6Ix] %s\n", (size_t) (data - start), data);
#endif