diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2016-12-03 01:46:08 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2016-12-03 01:46:08 -0600 |
commit | 20969e06a3ecfac7efc9817cdf2f1b45d2bf7554 (patch) | |
tree | 1a4e2d29120e5a86314b3aa24ddabe5b2b695470 /dev-libs/elfutils/files/elfutils-0.118-PaX-support.patch | |
parent | ee93d8900b12ecb556aaf7f11dac5ec9660d5f1f (diff) | |
download | packages-20969e06a3ecfac7efc9817cdf2f1b45d2bf7554.tar.gz packages-20969e06a3ecfac7efc9817cdf2f1b45d2bf7554.tar.bz2 packages-20969e06a3ecfac7efc9817cdf2f1b45d2bf7554.tar.xz packages-20969e06a3ecfac7efc9817cdf2f1b45d2bf7554.zip |
dev-libs/elfutils: new package
Diffstat (limited to 'dev-libs/elfutils/files/elfutils-0.118-PaX-support.patch')
-rw-r--r-- | dev-libs/elfutils/files/elfutils-0.118-PaX-support.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-libs/elfutils/files/elfutils-0.118-PaX-support.patch b/dev-libs/elfutils/files/elfutils-0.118-PaX-support.patch new file mode 100644 index 000000000..083f32ff8 --- /dev/null +++ b/dev-libs/elfutils/files/elfutils-0.118-PaX-support.patch @@ -0,0 +1,26 @@ +Add support for PaX ELF markings + +Patch by Kevin F. Quinn <kevquinn@gentoo.org> + +http://bugs.gentoo.org/115100 + +--- libelf/elf.h ++++ libelf/elf.h +@@ -568,6 +568,7 @@ + #define PT_GNU_EH_FRAME 0x6474e550 /* GCC .eh_frame_hdr segment */ + #define PT_GNU_STACK 0x6474e551 /* Indicates stack executability */ + #define PT_GNU_RELRO 0x6474e552 /* Read-only after relocation */ ++#define PT_PAX_FLAGS 0x65041580 /* Indicates PaX flag markings */ + #define PT_LOSUNW 0x6ffffffa + #define PT_SUNWBSS 0x6ffffffa /* Sun Specific segment */ + #define PT_SUNWSTACK 0x6ffffffb /* Stack segment */ +--- src/elflint.c ++++ src/elflint.c +@@ -3187,6 +3187,7 @@ + + if (phdr->p_type >= PT_NUM && phdr->p_type != PT_GNU_EH_FRAME + && phdr->p_type != PT_GNU_STACK && phdr->p_type != PT_GNU_RELRO ++ && phdr->p_type != PT_PAX_FLAGS + /* Check for a known machine-specific type. */ + && ebl_segment_type_name (ebl, phdr->p_type, NULL, 0) == NULL) + ERROR (gettext ("\ |