summaryrefslogtreecommitdiff
path: root/ld/config.in
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-02-06 09:05:35 -0800
committerH.J. Lu <hjl.tools@gmail.com>2015-02-06 09:05:57 -0800
commit2aec968d4df313f893f239a1a69aef2392a16b85 (patch)
treec6545b73df74130e9c2ff0a078c7af099ee1c6c7 /ld/config.in
parentd6c146e9ea09e050e6f05fa00312de3fe763e811 (diff)
downloadbinutils-gdb-2aec968d4df313f893f239a1a69aef2392a16b85.tar.gz
Use mmap and cache the view buffer for get_view
This patch uses mmap if it is available and works. It also caches the view buffer for get_view. * 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.
Diffstat (limited to 'ld/config.in')
-rw-r--r--ld/config.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/config.in b/ld/config.in
index 2ab48448763..ad015fe1a16 100644
--- a/ld/config.in
+++ b/ld/config.in
@@ -56,6 +56,9 @@
/* Define to 1 if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
+/* Define to 1 if you have the `getpagesize' function. */
+#undef HAVE_GETPAGESIZE
+
/* Define to 1 if you have the `glob' function. */
#undef HAVE_GLOB
@@ -83,6 +86,9 @@
/* Define to 1 if you have the `mkstemp' function. */
#undef HAVE_MKSTEMP
+/* Define to 1 if you have a working `mmap' system call. */
+#undef HAVE_MMAP
+
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
#undef HAVE_NDIR_H