* 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.
This commit is contained in:
Alan Modra 2011-01-14 12:37:17 +00:00
parent 4a97a0e54c
commit e922bcabdf
10 changed files with 31 additions and 27 deletions

View file

@ -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;
}