From: nickc Date: Mon, 4 Jan 2010 22:39:58 +0000 (+0000) Subject: PR 11128 X-Git-Url: http://git.osdn.net/view?p=pf3gnuchains%2Fpf3gnuchains3x.git;a=commitdiff_plain;h=3624c74dd4f05cb78cbd8c1f370d885e9d497144 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. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 5b7415b56a..3dfc33a8cf 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,12 @@ 2010-01-04 Nick Clifton + 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 + * po/ru/po: Updated Russian translation. For older changes see ChangeLog-2009 diff --git a/binutils/readelf.c b/binutils/readelf.c index 956144dfb3..fd44f2f105 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