aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-01-14 12:37:17 +0000
committerAlan Modra <amodra@gmail.com>2011-01-14 12:37:17 +0000
commite922bcabdffb3f36677c587e5ff04e90488837b6 (patch)
treef0be6e42e7aef43d6d5b02b47d1e10db511287e5 /ld/ldmain.c
parent4a97a0e54cba4caa5d994260f9c8ac9548628790 (diff)
downloadgdb-e922bcabdffb3f36677c587e5ff04e90488837b6.zip
gdb-e922bcabdffb3f36677c587e5ff04e90488837b6.tar.gz
gdb-e922bcabdffb3f36677c587e5ff04e90488837b6.tar.bz2
* 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/ldmain.c')
-rw-r--r--ld/ldmain.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index 5530dca..19c42d9 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -1,6 +1,6 @@
/* Main program of GNU linker.
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
- 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
Written by Steve Chamberlain steve@cygnus.com
@@ -551,12 +551,14 @@ main (int argc, char **argv)
#endif
long run_time = get_run_time () - start_time;
+ fflush (stdout);
fprintf (stderr, _("%s: total time in link: %ld.%06ld\n"),
program_name, run_time / 1000000, run_time % 1000000);
#ifdef HAVE_SBRK
fprintf (stderr, _("%s: data size %ld\n"), program_name,
(long) (lim - (char *) &environ));
#endif
+ fflush (stderr);
}
/* Prevent remove_output from doing anything, after a successful link. */