summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-07-20 00:35:31 +0100
committerSam James <sam@gentoo.org>2023-07-20 00:55:06 +0100
commitc7245f6d8e9fd787dd859cbb39930e5a1288ef3a (patch)
treeae5d89e746791a04d14fa68ed75701251f27615c /dev-libs/elfutils/files/elfutils-0.189-PaX-support.patch
parentsys-auth/oath-toolkit: add 2.6.9 (diff)
downloadgentoo-c7245f6d8e9fd787dd859cbb39930e5a1288ef3a.tar.gz
gentoo-c7245f6d8e9fd787dd859cbb39930e5a1288ef3a.tar.bz2
gentoo-c7245f6d8e9fd787dd859cbb39930e5a1288ef3a.zip
dev-libs/elfutils: drop stale patches, fix tests w/ mawk
Thank you again to mjw for pointing this out! Drop two stale patches: - elfutils-0.177-disable-large.patch: see https://sourceware.org/bugzilla/show_bug.cgi?id=24158#c3. - elfutils-0.175-disable-biarch-test-PR24158.patch: see https://sourceware.org/bugzilla/show_bug.cgi?id=28975. Add two test patches: - elfutils-0.189-skip-DT_RELR-failing-tests.patch - elfutils-0.189-tests-run-lfs-symbols.sh-needs-gawk.patch Import musl patches to files/ so all of them are in the same place (there's no longer a huge musl patch for error.h so this is fine): - elfutils-0.189-musl-aarch64-regs.patch - elfutils-0.189-musl-macros.patch Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/elfutils/files/elfutils-0.189-PaX-support.patch')
-rw-r--r--dev-libs/elfutils/files/elfutils-0.189-PaX-support.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-libs/elfutils/files/elfutils-0.189-PaX-support.patch b/dev-libs/elfutils/files/elfutils-0.189-PaX-support.patch
new file mode 100644
index 000000000000..2d44c757711a
--- /dev/null
+++ b/dev-libs/elfutils/files/elfutils-0.189-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
+
+--- a/libelf/elf.h
++++ b/libelf/elf.h
+@@ -722,6 +722,7 @@ typedef struct
+ #define PT_GNU_STACK 0x6474e551 /* Indicates stack executability */
+ #define PT_GNU_RELRO 0x6474e552 /* Read-only after relocation */
+ #define PT_GNU_PROPERTY 0x6474e553 /* GNU property */
++#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 */
+--- a/src/elflint.c
++++ b/src/elflint.c
+@@ -4493,6 +4493,7 @@ only executables, shared objects, and core files can have program headers\n"));
+
+ 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
+ && phdr->p_type != PT_GNU_PROPERTY
+ /* Check for a known machine-specific type. */
+ && ebl_segment_type_name (ebl, phdr->p_type, NULL, 0) == NULL)