mailing list of musl libc
 help / color / mirror / 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

mailing list of musl libc

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/musl

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 musl musl/ http://inbox.vuxu.org/musl \
		musl@inbox.vuxu.org
	public-inbox-index musl

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.musl


code repositories for the project(s) associated with this inbox:

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

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git