aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure.in
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1995-11-06 10:08:03 +0000
committerKen Raeburn <raeburn@cygnus>1995-11-06 10:08:03 +0000
commit4fe6d901bd49996a77c84ab710918c94e84e9a23 (patch)
treeefb4a153d072284395fe4dc4d61d88ca61e17782 /bfd/configure.in
parentffacb892eba97f8eb3019ee236fc8ea7e1825718 (diff)
downloadgdb-4fe6d901bd49996a77c84ab710918c94e84e9a23.zip
gdb-4fe6d901bd49996a77c84ab710918c94e84e9a23.tar.gz
gdb-4fe6d901bd49996a77c84ab710918c94e84e9a23.tar.bz2
Changes for mmap; details in change log.
Added some new interfaces, and a new entry in the target vector. Under the new interfaces, mmap will be used if available, otherwise malloc/seek/read, as before. Old interfaces all still intact. Most configurations (including all used by "--enable-targets=all") simply changed to call the default routine for that entry in the target vector. I might've missed some targets only included in special configurations. Support for a.out symbol and string table reading now goes through new interfaces, and will use mmap when available. Linker hooks (e.g., avoiding reallocation under malloc) not ready yet.
Diffstat (limited to 'bfd/configure.in')
-rw-r--r--bfd/configure.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/configure.in b/bfd/configure.in
index 61e0471..8ef6b01 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -528,6 +528,10 @@ test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
AC_SUBST(tdefaults)
+dnl AC_CHECK_HEADERS(sys/mman.h)
+AC_FUNC_MMAP
+AC_CHECK_FUNCS(madvise mprotect)
+
rm -f doc/config.status
AC_OUTPUT(Makefile doc/Makefile,
[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])