From 03172c99718981755f8db57a63560bb1f6664783 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Tue, 30 Apr 2019 22:02:21 +0200 Subject: [PATCH] Add elfutils-0.176-pt-gnu-prop.patch --- elfutils-0.176-pt-gnu-prop.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 elfutils-0.176-pt-gnu-prop.patch diff --git a/elfutils-0.176-pt-gnu-prop.patch b/elfutils-0.176-pt-gnu-prop.patch new file mode 100644 index 0000000..917765b --- /dev/null +++ b/elfutils-0.176-pt-gnu-prop.patch @@ -0,0 +1,18 @@ +diff --git a/src/elflint.c b/src/elflint.c +index 810c8bd..1acf1bc 100644 +--- a/src/elflint.c ++++ b/src/elflint.c +@@ -4483,8 +4483,13 @@ only executables, shared objects, and core files can have program headers\n")); + continue; + } + ++#ifndef PT_GNU_PROPERTY ++#define PT_GNU_PROPERTY (PT_LOOS + 0x474e553) ++#endif ++ + 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_GNU_PROPERTY + /* Check for a known machine-specific type. */ + && ebl_segment_type_name (ebl, phdr->p_type, NULL, 0) == NULL) + ERROR (gettext ("\