diff options
author | Alan Modra <amodra@gmail.com> | 2011-01-14 12:37:17 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2011-01-14 12:37:17 +0000 |
commit | e922bcabdffb3f36677c587e5ff04e90488837b6 (patch) | |
tree | f0be6e42e7aef43d6d5b02b47d1e10db511287e5 /ld/emultempl/ppc64elf.em | |
parent | * bfd.c (bfd_perror): Flush stdout before and stderr after printing (diff) | |
download | binutils-gdb-e922bcabdffb3f36677c587e5ff04e90488837b6.tar.gz binutils-gdb-e922bcabdffb3f36677c587e5ff04e90488837b6.tar.bz2 binutils-gdb-e922bcabdffb3f36677c587e5ff04e90488837b6.zip |
* 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/emultempl/ppc64elf.em')
-rw-r--r-- | ld/emultempl/ppc64elf.em | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/emultempl/ppc64elf.em b/ld/emultempl/ppc64elf.em index cb8e7841e8d..0c995920f4e 100644 --- a/ld/emultempl/ppc64elf.em +++ b/ld/emultempl/ppc64elf.em @@ -1,5 +1,5 @@ # This shell script emits a C file. -*- C -*- -# Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 +# Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 # Free Software Foundation, Inc. # # This file is part of the GNU Binutils. @@ -545,6 +545,7 @@ gld${EMULATION_NAME}_finish (void) config.stats ? &msg : NULL)) einfo ("%X%P: can not build stubs: %E\n"); + fflush (stdout); for (line = msg; line != NULL; line = endline) { endline = strchr (line, '\n'); @@ -552,6 +553,7 @@ gld${EMULATION_NAME}_finish (void) *endline++ = '\0'; fprintf (stderr, "%s: %s\n", program_name, line); } + fflush (stderr); if (msg != NULL) free (msg); } |