mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 01:53:38 +08:00
PR 32359, --dependency-file: wrong error message if fopen fails
Use of %E in ld error messages requires bfd_error to be set.
This commit is contained in:
parent
f80d7a791b
commit
8eba92c9e2
@ -194,6 +194,7 @@ write_dependency_file (void)
|
||||
out = fopen (config.dependency_file, FOPEN_WT);
|
||||
if (out == NULL)
|
||||
{
|
||||
bfd_set_error (bfd_error_system_call);
|
||||
einfo (_("%F%P: cannot open dependency file %s: %E\n"),
|
||||
config.dependency_file);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user