PR ld/16028
authorNick Clifton <nickc@redhat.com>
Wed, 9 Oct 2013 16:30:02 +0000 (16:30 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 9 Oct 2013 16:30:02 +0000 (16:30 +0000)
* ldmain.c (add_keepsyms_file): Close file at end of function.

ld/ChangeLog
ld/ldmain.c

index 75f21fd35767cb35a55e9b6188a146633c74ec8a..1b2f88c2e3310a44bf13a2ae67d021299bbd858a 100644 (file)
@@ -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.
index 6a53667db1e5b2a6f03bbe6b39f62ef03fcc4ad7..019df71a2c40c734bec59de7bd442f83a7f1073f 100644 (file)
@@ -744,6 +744,7 @@ add_keepsyms_file (const char *filename)
 
   free (buf);
   link_info.strip = strip_some;
+  fclose (file);
 }
 \f
 /* Callbacks from the BFD linker routines.  */