From: Adhemerval Zanella Date: Tue, 31 Oct 2023 16:32:35 +0000 (-0300) Subject: linux: Add MMAP_ABOVE4G from Linux 6.6 to sys/mman.h X-Git-Tag: glibc-2.39~314 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb8c78b2ffa0b77ae453b2d328d7e2fe5186ef2a;p=thirdparty%2Fglibc.git linux: Add MMAP_ABOVE4G from Linux 6.6 to sys/mman.h x86 added the flag (29f890d1050fc099f) for CET enabled. Also update tst-mman-consts.py test. --- diff --git a/sysdeps/unix/sysv/linux/tst-mman-consts.py b/sysdeps/unix/sysv/linux/tst-mman-consts.py index e85ea41ee42..8186d7e1783 100644 --- a/sysdeps/unix/sysv/linux/tst-mman-consts.py +++ b/sysdeps/unix/sysv/linux/tst-mman-consts.py @@ -33,7 +33,7 @@ def main(): help='C compiler (including options) to use') args = parser.parse_args() linux_version_headers = glibcsyscalls.linux_kernel_version(args.cc) - linux_version_glibc = (6, 5) + linux_version_glibc = (6, 6) sys.exit(glibcextract.compare_macro_consts( '#define _GNU_SOURCE 1\n' '#include \n', diff --git a/sysdeps/unix/sysv/linux/x86/bits/mman.h b/sysdeps/unix/sysv/linux/x86/bits/mman.h index b335ceff43e..3d356e86a0e 100644 --- a/sysdeps/unix/sysv/linux/x86/bits/mman.h +++ b/sysdeps/unix/sysv/linux/x86/bits/mman.h @@ -25,6 +25,7 @@ /* Other flags. */ #define MAP_32BIT 0x40 /* Only give out 32-bit addresses. */ +#define MAP_ABOVE4G 0x80 /* Only map above 4GB. */ #include