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/emultempl | |
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/emultempl')
-rw-r--r-- | ld/emultempl/beos.em | 6 | ||||
-rw-r--r-- | ld/emultempl/pe.em | 7 | ||||
-rw-r--r-- | ld/emultempl/pep.em | 7 | ||||
-rw-r--r-- | ld/emultempl/ppc64elf.em | 4 | ||||
-rw-r--r-- | ld/emultempl/xtensaelf.em | 2 |
5 files changed, 8 insertions, 18 deletions
diff --git a/ld/emultempl/beos.em b/ld/emultempl/beos.em index 708a2a9d3b..6dc6375416 100644 --- a/ld/emultempl/beos.em +++ b/ld/emultempl/beos.em @@ -270,11 +270,7 @@ gld${EMULATION_NAME}_handle_option (int optc) case OPTION_BASE_FILE: link_info.base_file = fopen (optarg, FOPEN_WB); if (link_info.base_file == NULL) - { - fprintf (stderr, "%s: Can't open base file %s\n", - program_name, optarg); - xexit (1); - } + einfo (_("%F%P: cannot open base file %s\n"), optarg); break; /* PE options */ diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index 0231fa77a7..a3e4cddabf 100644 --- a/ld/emultempl/pe.em +++ b/ld/emultempl/pe.em @@ -688,12 +688,7 @@ gld${EMULATION_NAME}_handle_option (int optc) case OPTION_BASE_FILE: link_info.base_file = fopen (optarg, FOPEN_WB); if (link_info.base_file == NULL) - { - /* xgettext:c-format */ - fprintf (stderr, _("%s: Can't open base file %s\n"), - program_name, optarg); - xexit (1); - } + einfo (_("%F%P: cannot open base file %s\n"), optarg); break; /* PE options. */ diff --git a/ld/emultempl/pep.em b/ld/emultempl/pep.em index 56687d673e..a307c14350 100644 --- a/ld/emultempl/pep.em +++ b/ld/emultempl/pep.em @@ -611,12 +611,7 @@ gld${EMULATION_NAME}_handle_option (int optc) case OPTION_BASE_FILE: link_info.base_file = fopen (optarg, FOPEN_WB); if (link_info.base_file == NULL) - { - /* xgettext:c-format */ - fprintf (stderr, _("%s: Can't open base file %s\n"), - program_name, optarg); - xexit (1); - } + einfo (_("%F%P: cannot open base file %s\n"), optarg); break; /* PE options. */ diff --git a/ld/emultempl/ppc64elf.em b/ld/emultempl/ppc64elf.em index cb8e7841e8..0c995920f4 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); } diff --git a/ld/emultempl/xtensaelf.em b/ld/emultempl/xtensaelf.em index ed015a23c6..b37a67b2fe 100644 --- a/ld/emultempl/xtensaelf.em +++ b/ld/emultempl/xtensaelf.em @@ -1817,8 +1817,10 @@ ld_local_file_relocations_fit (lang_statement_union_type *statement, bfd_vma target_addr = e->tgt->output_offset & ~3; if (l32r_addr < target_addr) { + fflush (stdout); fprintf (stderr, "Warning: " "l32r target section before l32r\n"); + fflush (stderr); return FALSE; } |