This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Update MAP_TYPE value for hppa from Linux 4.17
- From: Joseph Myers <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Mon, 4 Jun 2018 20:56:48 +0000
- Subject: Update MAP_TYPE value for hppa from Linux 4.17
This patch updates the hppa definition of MAP_TYPE to reflect a
corresponding change in the Linux kernel in 4.17 (so the value now has
four bits set, as it does on other architectures, although they are
different from other architectures because of hppa differences in
other MAP_* bits).
Tested with build-many-glibcs.py for hppa.
2018-06-04 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
(MAP_TYPE): Change value to 0x2b.
diff --git a/sysdeps/unix/sysv/linux/hppa/bits/mman.h b/sysdeps/unix/sysv/linux/hppa/bits/mman.h
index 380be7b..250ce38 100644
--- a/sysdeps/unix/sysv/linux/hppa/bits/mman.h
+++ b/sysdeps/unix/sysv/linux/hppa/bits/mman.h
@@ -36,7 +36,7 @@
#ifdef __USE_MISC
# define MAP_SHARED_VALIDATE 0x03 /* Share changes and validate
extension flags. */
-# define MAP_TYPE 0x03 /* Mask for type of mapping */
+# define MAP_TYPE 0x2b /* Mask for type of mapping */
#endif
/* Other flags. */
--
Joseph S. Myers
joseph@codesourcery.com