patches/glibc/2.9/390-2.3.3_pre20040117-pt_pax.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jan 29 00:57:02 2011 +0100 (2011-01-29)
changeset 2285 7d1e018167b5
parent 1201 c9967a6e3b25
permissions -rw-r--r--
comptools: add make-3.81

Since the advent of make-3.82, some packages now break due to changes
in make-3.82, being stricter than 3.81 when interpreting the Makefiles.

This has bugged us a bit too much so far, and I believe fixing all
of them is a long road, while simply building make-3.81 is the easiest
route for now.

Of course, in the long term, packages will get fixed upstream, and we
should back-port the fixes to old versions, and get rid of building
make-3.81. In the meantime...

Reported several times on the mailing list.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@1201
     1
Original patch from: gentoo/src/patchsets/glibc/2.9/3010_all_2.3.3_pre20040117-pt_pax.patch
yann@1201
     2
yann@1201
     3
-= BEGIN original header =-
yann@1201
     4
-= END original header =-
yann@1201
     5
yann@1201
     6
diff -durN glibc-2_9.orig/elf/elf.h glibc-2_9/elf/elf.h
yann@1201
     7
--- glibc-2_9.orig/elf/elf.h	2008-10-01 21:41:34.000000000 +0200
yann@1201
     8
+++ glibc-2_9/elf/elf.h	2009-02-02 22:01:21.000000000 +0100
yann@1201
     9
@@ -571,6 +571,7 @@
yann@1201
    10
 #define PT_GNU_EH_FRAME	0x6474e550	/* GCC .eh_frame_hdr segment */
yann@1201
    11
 #define PT_GNU_STACK	0x6474e551	/* Indicates stack executability */
yann@1201
    12
 #define PT_GNU_RELRO	0x6474e552	/* Read-only after relocation */
yann@1201
    13
+#define PT_PAX_FLAGS	0x65041580	/* Indicates PaX flag markings */
yann@1201
    14
 #define PT_LOSUNW	0x6ffffffa
yann@1201
    15
 #define PT_SUNWBSS	0x6ffffffa	/* Sun Specific segment */
yann@1201
    16
 #define PT_SUNWSTACK	0x6ffffffb	/* Stack segment */
yann@1201
    17
@@ -584,6 +585,18 @@
yann@1201
    18
 #define PF_X		(1 << 0)	/* Segment is executable */
yann@1201
    19
 #define PF_W		(1 << 1)	/* Segment is writable */
yann@1201
    20
 #define PF_R		(1 << 2)	/* Segment is readable */
yann@1201
    21
+#define PF_PAGEEXEC	(1 << 4)	/* Enable  PAGEEXEC */
yann@1201
    22
+#define PF_NOPAGEEXEC	(1 << 5)	/* Disable PAGEEXEC */
yann@1201
    23
+#define PF_SEGMEXEC	(1 << 6)	/* Enable  SEGMEXEC */
yann@1201
    24
+#define PF_NOSEGMEXEC	(1 << 7)	/* Disable SEGMEXEC */
yann@1201
    25
+#define PF_MPROTECT	(1 << 8)	/* Enable  MPROTECT */
yann@1201
    26
+#define PF_NOMPROTECT	(1 << 9)	/* Disable MPROTECT */
yann@1201
    27
+#define PF_RANDEXEC	(1 << 10)	/* Enable  RANDEXEC */
yann@1201
    28
+#define PF_NORANDEXEC	(1 << 11)	/* Disable RANDEXEC */
yann@1201
    29
+#define PF_EMUTRAMP	(1 << 12)	/* Enable  EMUTRAMP */
yann@1201
    30
+#define PF_NOEMUTRAMP	(1 << 13)	/* Disable EMUTRAMP */
yann@1201
    31
+#define PF_RANDMMAP	(1 << 14)	/* Enable  RANDMMAP */
yann@1201
    32
+#define PF_NORANDMMAP	(1 << 15)	/* Disable RANDMMAP */
yann@1201
    33
 #define PF_MASKOS	0x0ff00000	/* OS-specific */
yann@1201
    34
 #define PF_MASKPROC	0xf0000000	/* Processor-specific */
yann@1201
    35