diff options
Diffstat (limited to 'gas/output-file.c')
-rw-r--r-- | gas/output-file.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/output-file.c b/gas/output-file.c index 4c376b4dcc..4005fbfa03 100644 --- a/gas/output-file.c +++ b/gas/output-file.c @@ -48,7 +48,10 @@ output_file_create (char *name) else if (!(stdoutput = bfd_openw (name, TARGET_FORMAT))) { - as_perror (_("FATAL: can't create %s"), name); + if (bfd_get_error () == bfd_error_invalid_target) + as_perror (_("Selected target format '%s' unknown"), TARGET_FORMAT); + else + as_perror (_("FATAL: can't create %s"), name); exit (EXIT_FAILURE); } |