mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] [PATCH] personality: add missing personality(2) values
@ 2020-11-18 15:59 William Woodruff
  0 siblings, 0 replies; only message in thread
From: William Woodruff @ 2020-11-18 15:59 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 323 bytes --]


Adds two missing personality(2) personas: UNAME26
and FDPIC_FUNCPTRS.

FDPIC_FUNCPTRS was also missing its corresponding
PER_LINUX_FDPIC value.

This makes musl's personality.h header consistent with
the definitions supplied by glibc's personality.h.
---
include/sys/personality.h | 3 +++
1 file changed, 3 insertions(+)


[-- Attachment #2: 0001-personality-add-missing-personality-2-values.patch --]
[-- Type: text/x-patch, Size: 751 bytes --]

diff --git a/include/sys/personality.h b/include/sys/personality.h
index 31d43dfe..411dc475 100644
--- a/include/sys/personality.h
+++ b/include/sys/personality.h
@@ -5,7 +5,9 @@
 extern "C" {
 #endif
 
+#define UNAME26            0x0020000
 #define ADDR_NO_RANDOMIZE  0x0040000
+#define FDPIC_FUNCPTRS     0x0080000
 #define MMAP_PAGE_ZERO     0x0100000
 #define ADDR_COMPAT_LAYOUT 0x0200000
 #define READ_IMPLIES_EXEC  0x0400000
@@ -17,6 +19,7 @@ extern "C" {
 
 #define PER_LINUX 0
 #define PER_LINUX_32BIT ADDR_LIMIT_32BIT
+#define PER_LINUX_FDPIC FDPIC_FUNCPTRS
 #define PER_SVR4 (1 | STICKY_TIMEOUTS | MMAP_PAGE_ZERO)
 #define PER_SVR3 (2 | STICKY_TIMEOUTS | SHORT_INODE)
 #define PER_SCOSVR3 (3 | STICKY_TIMEOUTS | WHOLE_SECONDS | SHORT_INODE)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-18 16:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-18 15:59 [musl] [PATCH] personality: add missing personality(2) values William Woodruff

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).