]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
libctf: do not use mmap on Solaris 11
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 16 Jul 2025 12:10:05 +0000 (13:10 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 23 Jul 2025 12:06:09 +0000 (13:06 +0100)
Writable mmaps and read are inconsistent with each other on Solaris 11.4,
which breaks archive writing.  Simply assert that Solaris 2.11 doesn't have
mmap, falling back to read(): the archive format is being bumped shortly, to
one with completely different writeout code, so this workaround need not
stay for long.

[nca: added commit log]

libctf/
PR libctf/29292
* configure.ac: Turn off mmap on Solaris 2.11.
* configure: Regenerated.

libctf/configure
libctf/configure.ac

index 7466d56a18bc22d70eaf593e8ec55745968246b6..4c244da01008e79da88379d77808c17598922c2a 100755 (executable)
@@ -15966,6 +15966,14 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
 
+case "${host}" in
+  # PR libctf/29292
+  # libctf's use of mmap doesn't work on Solaris 11.4, so disable it.
+  *-*-solaris2.11*)
+    ac_cv_func_mmap_fixed_mapped=no
+  ;;
+esac
+
 
 
 
index fbd8ec12a14445c6a1d4a552d351b1d51d50dcc5..dbe311c5af3a9a5a58f27b7d20379acc09191852 100644 (file)
@@ -65,6 +65,14 @@ AM_MAINTAINER_MODE
 AM_INSTALL_LIBBFD
 ACX_PROG_CC_WARNING_OPTS([-Wall], [ac_libctf_warn_cflags])
 
+case "${host}" in
+  # PR libctf/29292
+  # libctf's use of mmap doesn't work on Solaris 11.4, so disable it.
+  *-*-solaris2.11*)
+    ac_cv_func_mmap_fixed_mapped=no
+  ;;
+esac
+
 GCC_AC_FUNC_MMAP
 # Needed for BFD capability checks.
 AC_SEARCH_LIBS(dlsym, dl)