Use mmap and cache the view buffer for get_view
[deliverable/binutils-gdb.git] / ld / ChangeLog
index 0d767babe4dfcda2ba866b47c1d56f25d0dd1224..e838ac853e06c9e2ae98288417adc35a9ce7d34b 100644 (file)
@@ -1,3 +1,22 @@
+2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * configure.ac: Add AC_FUNC_MMAP.
+       * config.in: Regenerated.
+       * configure: Likewise.
+       * plugin.c: Include <sys/mman.h>.
+       (MAP_FAILED): New.  Defined if not defined.
+       (PROT_READ): Likewise.
+       (MAP_PRIVATE): Likewise.
+       (view_buffer_t): New.
+       (plugin_input_file_t): Add view_buffer.
+       (get_view): Try mmap and cache the view buffer.
+       (plugin_maybe_claim): Initialize view_buffer.
+
+2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * plugin.c (release_input_file): Set fd to -1 after closing it.
+       (plugin_maybe_claim): Close fd only if fd != -1.
+
 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/17878
This page took 0.023731 seconds and 4 git commands to generate.