diff options
author | Barnabás Pőcze <pobrn@protonmail.com> | 2024-11-16 10:04:48 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-11-16 10:07:12 +1030 |
commit | 8eba92c9e224444cc893dd0abf2377701c10f884 (patch) | |
tree | 6242622f41c669bae921f0109986ea3a1f52144a | |
parent | f80d7a791b67ab63822c31a6866fce3c2ee04e27 (diff) | |
download | binutils-8eba92c9e224444cc893dd0abf2377701c10f884.zip binutils-8eba92c9e224444cc893dd0abf2377701c10f884.tar.gz binutils-8eba92c9e224444cc893dd0abf2377701c10f884.tar.bz2 |
PR 32359, --dependency-file: wrong error message if fopen fails
Use of %E in ld error messages requires bfd_error to be set.
-rw-r--r-- | ld/ldmain.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c index 037099b..4fb0d1c 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -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); } |