mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-18 13:23:10 +08:00
(output_file_create): Report the target format chosen when bfd_openw reports
that it is invalid.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2004-07-06 Nick Clifton <nickc@redhat.com>
|
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
|
* config/obj-coff.c (coff_pseudo_table): Only define the weak
|
||||||
pseudo for BFD based assemblers.
|
pseudo for BFD based assemblers.
|
||||||
|
|
||||||
|
@ -48,7 +48,10 @@ output_file_create (char *name)
|
|||||||
|
|
||||||
else if (!(stdoutput = bfd_openw (name, TARGET_FORMAT)))
|
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);
|
exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user