From f49aa7b56a1515b48543689333e437fedc970e11 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Aug 14 2019 18:16:08 +0000 Subject: 0.177-1 - New upstream release. - elfclassify: New tool to analyze ELF objects. - readelf: Print DW_AT_data_member_location as decimal offset. Decode DW_AT_discr_list block attributes. - libdw: Add DW_AT_GNU_numerator, DW_AT_GNU_denominator and DW_AT_GNU_bias. - libdwelf: Add dwelf_elf_e_machine_string. dwelf_elf_begin now only returns NULL when there is an error reading or decompressing a file. If the file is not an ELF file an ELF handle of type ELF_K_NONE is returned. - backends: Add support for C-SKY. --- diff --git a/.gitignore b/.gitignore index 8f51d6c..5f0fc9a 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ /elfutils-0.174.tar.bz2 /elfutils-0.175.tar.bz2 /elfutils-0.176.tar.bz2 +/elfutils-0.177.tar.bz2 diff --git a/elfutils-0.176-pt-gnu-prop.patch b/elfutils-0.176-pt-gnu-prop.patch deleted file mode 100644 index 917765b..0000000 --- a/elfutils-0.176-pt-gnu-prop.patch +++ /dev/null @@ -1,18 +0,0 @@ -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/elfutils-0.177-pt-gnu-prop.patch b/elfutils-0.177-pt-gnu-prop.patch new file mode 100644 index 0000000..917765b --- /dev/null +++ b/elfutils-0.177-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/elfutils.spec b/elfutils.spec index 91f57ad..86c5bb3 100644 --- a/elfutils.spec +++ b/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 5 +Version: 0.177 +%global baserelease 1 URL: http://elfutils.org/ %global source_url ftp://sourceware.org/pub/elfutils/%{version}/ License: GPLv3+ and (GPLv2+ or LGPLv3+) @@ -19,11 +19,7 @@ Release: %{baserelease}%{?dist} Source: %{?source_url}%{name}-%{version}.tar.bz2 # Patches -Patch1: elfutils-0.176-gcc-pr88835.patch -Patch2: elfutils-0.176-pt-gnu-prop.patch -Patch3: elfutils-0.176-xlate-note.patch -Patch4: elfutils-0.176-elf-update.patch -Patch5: elfutils-0.176-strip-symbols-illformed.patch +Patch1: elfutils-0.177-pt-gnu-prop.patch Requires: elfutils-libelf%{depsuffix} = %{version}-%{release} Requires: elfutils-libs%{depsuffix} = %{version}-%{release} @@ -185,11 +181,7 @@ profiling) of processes. %setup -q # Apply patches -%patch1 -p1 -b .gcc-pr88835 -%patch2 -p1 -b .pt-gnu-prop -%patch3 -p1 -b .xlate-note -%patch4 -p1 -b .elf-update -%patch5 -p1 -b .strip-illformed +%patch1 -p1 -b .pt-gnu-prop # In case the above patches added any new test scripts, make sure they # are executable. @@ -270,6 +262,7 @@ fi %{_bindir}/eu-unstrip %{_bindir}/eu-make-debug-archive %{_bindir}/eu-elfcompress +%{_bindir}/eu-elfclassify %files libs %{!?_licensedir:%global license %%doc} @@ -323,6 +316,18 @@ fi %endif %changelog +* Wed Aug 14 2019 Mark Wielaard - 0.177-1 +- New upstream release. + - elfclassify: New tool to analyze ELF objects. + - readelf: Print DW_AT_data_member_location as decimal offset. + Decode DW_AT_discr_list block attributes. + - libdw: Add DW_AT_GNU_numerator, DW_AT_GNU_denominator and DW_AT_GNU_bias. + - libdwelf: Add dwelf_elf_e_machine_string. + dwelf_elf_begin now only returns NULL when there is an error + reading or decompressing a file. If the file is not an ELF file + an ELF handle of type ELF_K_NONE is returned. + - backends: Add support for C-SKY. + * Wed Jul 24 2019 Fedora Release Engineering - 0.176-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index 5277574..14fbdc3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (elfutils-0.176.tar.bz2) = 7f032913be363a43229ded85d495dcf7542b3c85974aaaba0d984228dc9ac1721da3dc388d3fa02325a80940161db7e9ad2c9e4521a424ad8a7d050c0902915b +SHA512 (elfutils-0.177.tar.bz2) = 2779987463a22ed220759e25a09c9a1eb84c0f36db37675136e59aa55c7f8f90b7a7d34ffc4e6a4291d7fa73692a1bd1a303a74270b11d1623b4f9868d19498f