aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-10-09 16:30:02 +0000
committerNick Clifton <nickc@redhat.com>2013-10-09 16:30:02 +0000
commitd9313f4f43f9bb23fb1ef3a93c4879c706d5e881 (patch)
tree90d3b7e705bd607d0a6f5084f9ca957040df81f0 /ld
parentb707aa49bf948b3e66734441525c215a7a5ba78a (diff)
downloadgdb-d9313f4f43f9bb23fb1ef3a93c4879c706d5e881.zip
gdb-d9313f4f43f9bb23fb1ef3a93c4879c706d5e881.tar.gz
gdb-d9313f4f43f9bb23fb1ef3a93c4879c706d5e881.tar.bz2
PR ld/16028
* ldmain.c (add_keepsyms_file): Close file at end of function.
Diffstat (limited to 'ld')
-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 75f21fd..1b2f88c 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 6a53667..019df71 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. */