patches/glibc/2.9/390-2.3.3_pre20040117-pt_pax.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun May 03 09:50:16 2009 +0000 (2009-05-03)
branchnewlib
changeset 1366 5e5d1e6f55d3
permissions -rw-r--r--
Update the newlib devel branch with stuff from /trunk@1498.

-------- diffstat follows --------
/devel/newlib/configure | 336 176 160 0 +++++++------
/devel/newlib/Makefile.in | 12 3 9 0 -
/devel/newlib/scripts/build/kernel/linux.sh | 2 1 1 0
/devel/newlib/scripts/build/internals.sh | 1 0 1 0 -
/devel/newlib/scripts/build/libc/eglibc.sh | 1 0 1 0 -
/devel/newlib/scripts/build/mpfr.sh | 2 1 1 0
/devel/newlib/scripts/functions | 111 5 106 0 ----
/devel/newlib/scripts/config.guess | 7 5 2 0 +
/devel/newlib/scripts/config.sub | 3 2 1 0 +
/devel/newlib/scripts/saveSample.sh.in | 4 2 2 0
/devel/newlib/docs/overview.txt | 8 6 2 0 +
/devel/newlib/samples/armeb-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/sh4-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/x86_64-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-elf/crosstool.config | 12 3 9 0 -
/devel/newlib/samples/armeb-unknown-eabi/crosstool.config | 2 0 2 0 -
/devel/newlib/samples/arm-unknown-linux-gnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/ia64-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/x86_64-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/armeb-unknown-linux-gnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-e500v2-linux-gnuspe/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/i686-nptl-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/mips-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-iphone-linux-gnueabi/crosstool.config | 8 4 4 0
/devel/newlib/samples/armeb-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/i586-geode-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/mips-unknown-elf/crosstool.config | 2 0 2 0 -
/devel/newlib/samples/powerpc-405-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-eabi/crosstool.config | 12 3 9 0 -
/devel/newlib/samples/mipsel-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc64-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/alphaev56-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-860-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/config/kernel/linux.in | 108 2 106 0 ----
/devel/newlib/config/global/ct-behave.in | 22 13 9 0 +
/devel/newlib/config/global/download.in | 210 15 195 0 +-------
/devel/newlib/config/libc/glibc.in | 7 7 0 0 +
/devel/newlib/config/libc/glibc-eglibc.in-common | 15 14 1 0 +
45 files changed, 382 insertions(+), 839 deletions(-)
yann@1365
     1
Original patch from: gentoo/src/patchsets/glibc/2.9/3010_all_2.3.3_pre20040117-pt_pax.patch
yann@1365
     2
yann@1365
     3
-= BEGIN original header =-
yann@1365
     4
-= END original header =-
yann@1365
     5
yann@1365
     6
diff -durN glibc-2_9.orig/elf/elf.h glibc-2_9/elf/elf.h
yann@1365
     7
--- glibc-2_9.orig/elf/elf.h	2008-10-01 21:41:34.000000000 +0200
yann@1365
     8
+++ glibc-2_9/elf/elf.h	2009-02-02 22:01:21.000000000 +0100
yann@1365
     9
@@ -571,6 +571,7 @@
yann@1365
    10
 #define PT_GNU_EH_FRAME	0x6474e550	/* GCC .eh_frame_hdr segment */
yann@1365
    11
 #define PT_GNU_STACK	0x6474e551	/* Indicates stack executability */
yann@1365
    12
 #define PT_GNU_RELRO	0x6474e552	/* Read-only after relocation */
yann@1365
    13
+#define PT_PAX_FLAGS	0x65041580	/* Indicates PaX flag markings */
yann@1365
    14
 #define PT_LOSUNW	0x6ffffffa
yann@1365
    15
 #define PT_SUNWBSS	0x6ffffffa	/* Sun Specific segment */
yann@1365
    16
 #define PT_SUNWSTACK	0x6ffffffb	/* Stack segment */
yann@1365
    17
@@ -584,6 +585,18 @@
yann@1365
    18
 #define PF_X		(1 << 0)	/* Segment is executable */
yann@1365
    19
 #define PF_W		(1 << 1)	/* Segment is writable */
yann@1365
    20
 #define PF_R		(1 << 2)	/* Segment is readable */
yann@1365
    21
+#define PF_PAGEEXEC	(1 << 4)	/* Enable  PAGEEXEC */
yann@1365
    22
+#define PF_NOPAGEEXEC	(1 << 5)	/* Disable PAGEEXEC */
yann@1365
    23
+#define PF_SEGMEXEC	(1 << 6)	/* Enable  SEGMEXEC */
yann@1365
    24
+#define PF_NOSEGMEXEC	(1 << 7)	/* Disable SEGMEXEC */
yann@1365
    25
+#define PF_MPROTECT	(1 << 8)	/* Enable  MPROTECT */
yann@1365
    26
+#define PF_NOMPROTECT	(1 << 9)	/* Disable MPROTECT */
yann@1365
    27
+#define PF_RANDEXEC	(1 << 10)	/* Enable  RANDEXEC */
yann@1365
    28
+#define PF_NORANDEXEC	(1 << 11)	/* Disable RANDEXEC */
yann@1365
    29
+#define PF_EMUTRAMP	(1 << 12)	/* Enable  EMUTRAMP */
yann@1365
    30
+#define PF_NOEMUTRAMP	(1 << 13)	/* Disable EMUTRAMP */
yann@1365
    31
+#define PF_RANDMMAP	(1 << 14)	/* Enable  RANDMMAP */
yann@1365
    32
+#define PF_NORANDMMAP	(1 << 15)	/* Disable RANDMMAP */
yann@1365
    33
 #define PF_MASKOS	0x0ff00000	/* OS-specific */
yann@1365
    34
 #define PF_MASKPROC	0xf0000000	/* Processor-specific */
yann@1365
    35