diff options
author | Alan Modra <amodra@bigpond.net.au> | 2011-01-14 12:37:16 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2011-01-14 12:37:16 +0000 |
commit | f8609b6de4f21f1d1c433160dc0cd9adaec95f34 (patch) | |
tree | 3b81161b01d8ea5ebb30e6987d4b8b8130aa2629 /ld/plugin.c | |
parent | 3ac3fa5a79682d8ab527af6f3943fed987e0ebdb (diff) | |
download | binutils-redhat-f8609b6de4f21f1d1c433160dc0cd9adaec95f34.tar.gz |
* ldmain.c (main): Flush stdout before and stderr after printing
message.
* ldmisc.c (einfo): Similarly.
* plugin.c (message): Likewise.
* emultempl/ppc64elf.em: Likewise.
* emultempl/xtensaelf.em: Likewise.
* emulparams/elf32mcore.sh: Use einfo rather than printf.
* emultempl/beos.em: Likewise.
* emultempl/pe.em: Likewise.
* emultempl/pep.em: Likewise.
Diffstat (limited to 'ld/plugin.c')
-rw-r--r-- | ld/plugin.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/plugin.c b/ld/plugin.c index 10314a4d48..05379b8e61 100644 --- a/ld/plugin.c +++ b/ld/plugin.c @@ -1,5 +1,5 @@ /* Plugin control for the GNU linker. - Copyright 2010 Free Software Foundation, Inc. + Copyright 2010, 2011 Free Software Foundation, Inc. This file is part of the GNU Binutils. @@ -596,7 +596,9 @@ message (int level, const char *format, ...) char *newfmt = ACONCAT ((level == LDPL_FATAL ? "%P%F: " : "%P%X: ", format, "\n", NULL)); + fflush (stdout); vfinfo (stderr, newfmt, args, TRUE); + fflush (stderr); } break; } |