diff --git a/SOURCES/elfutils-0.176-pt-gnu-prop.patch b/SOURCES/elfutils-0.176-pt-gnu-prop.patch new file mode 100644 index 0000000..917765b --- /dev/null +++ b/SOURCES/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 ("\ diff --git a/SPECS/elfutils.spec b/SPECS/elfutils.spec index 639e6ee..1be50c5 100644 --- a/SPECS/elfutils.spec +++ b/SPECS/elfutils.spec @@ -1,7 +1,7 @@ Name: elfutils Summary: A collection of utilities and DSOs to handle ELF files and DWARF data Version: 0.176 -%global baserelease 4 +%global baserelease 5 URL: http://elfutils.org/ %global source_url ftp://sourceware.org/pub/elfutils/%{version}/ License: GPLv3+ and (GPLv2+ or LGPLv3+) @@ -24,6 +24,7 @@ Patch1: elfutils-0.176-xlate-note.patch Patch2: elfutils-0.176-elf-update.patch Patch3: elfutils-0.176-strip-symbols-illformed.patch Patch4: elfutils-0.176-dwelf_elf_e_machine_string.patch +Patch5: elfutils-0.176-pt-gnu-prop.patch Requires: elfutils-libelf%{depsuffix} = %{version}-%{release} Requires: elfutils-libs%{depsuffix} = %{version}-%{release} @@ -181,15 +182,12 @@ profiling) of processes. %patch2 -p1 -b .elf-update %patch3 -p1 -b .strip-illformed %patch4 -p1 -b .e_machine +%patch5 -p1 -b .pt-gnu-prop # In case the above patches added any new test scripts, make sure they # are executable. find . -name \*.sh ! -perm -0100 -print | xargs chmod +x -%ifarch %{arm} -echo -e '"dwarf: arm needs debuginfo installed for all libraries"\nexit 77' > tests/run-backtrace-native-core.sh -%endif - %build # Remove -Wall from default flags. The makefiles enable enough warnings # themselves, and they use -Werror. Appending -Wall defeats the cases where @@ -325,6 +323,9 @@ fi %endif %changelog +* Wed Mar 18 2020 Mark Wielaard - 0.176-5 +- Add elfutils-0.176-gcc-pr88835.patch. + * Tue Aug 6 2019 Mark Wielaard - 0.176-4 - Add elfutils-0.176-dwelf_elf_e_machine_string.patch (#1724350)