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:
Barnabás Pőcze 2024-11-16 10:04:48 +10:30 committed by Alan Modra
parent f80d7a791b
commit 8eba92c9e2

View File

@ -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);
}