aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ld/ldmain.c1
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);
}