Skip to content

Commit

Permalink
(output_file_create): Report the target format chosen when bfd_openw …
Browse files Browse the repository at this point in the history
…reports

that it is invalid.
  • Loading branch information
nickclifton committed Jul 6, 2004
1 parent dcedada commit ab1de52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions gas/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2004-07-06 Nick Clifton <nickc@redhat.com>

* output-file.c (output_file_create): Report the target format
chosen when bfd_openw reports that it is invalid.

* config/obj-coff.c (coff_pseudo_table): Only define the weak
pseudo for BFD based assemblers.

Expand Down
5 changes: 4 additions & 1 deletion gas/output-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit ab1de52

Please sign in to comment.