diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-02-06 09:05:35 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-02-06 09:05:57 -0800 |
commit | 2aec968d4df313f893f239a1a69aef2392a16b85 (patch) | |
tree | c6545b73df74130e9c2ff0a078c7af099ee1c6c7 /ld/config.in | |
parent | d6c146e9ea09e050e6f05fa00312de3fe763e811 (diff) | |
download | binutils-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.in | 6 |
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 |