summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/ldmain.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 75f21fd357..1b2f88c2e3 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2013-10-09 Nick Clifton <nickc@redhat.com>
+
+ PR ld/16028
+ * ldmain.c (add_keepsyms_file): Close file at end of function.
+
2013-10-03 Will Newton <will.newton@linaro.org>
* emulparams/aarch64elf.sh: Add IREL_IN_PLT.
diff --git a/ld/ldmain.c b/ld/ldmain.c
index 6a53667db1..019df71a2c 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -744,6 +744,7 @@ add_keepsyms_file (const char *filename)
free (buf);
link_info.strip = strip_some;
+ fclose (file);
}
/* Callbacks from the BFD linker routines. */