diff --git a/0001-tests-Add-GCOV-flags-when-necessary.patch b/0001-tests-Add-GCOV-flags-when-necessary.patch new file mode 100644 index 0000000..715d9f1 --- /dev/null +++ b/0001-tests-Add-GCOV-flags-when-necessary.patch @@ -0,0 +1,54 @@ +From 3eaa4421b2422452b40547aab3e8da0749990ef9 Mon Sep 17 00:00:00 2001 +From: Mark Wielaard +Date: Thu, 11 Jun 2020 19:07:28 +0200 +Subject: [PATCH] tests: Add GCOV flags when necessary. + +The nlist-test has a special compile rule, make sure it gets the +GCOV flags when configuring with --enable-gcov. + +Signed-off-by: Mark Wielaard +--- + tests/ChangeLog | 4 ++++ + tests/Makefile.am | 8 +++++++- + 2 files changed, 11 insertions(+), 1 deletion(-) + +diff --git a/tests/ChangeLog b/tests/ChangeLog +index 99f9da9d..e5d9196b 100644 +--- a/tests/ChangeLog ++++ b/tests/ChangeLog +@@ -1,3 +1,7 @@ ++2020-06-11 Mark Wielaard ++ ++ * Makefile.am (nlist-test): Add GCOV flags when necessary. ++ + 2020-06-06 Mark Wielaard + + * testfilesyms32.bz2: New test file. +diff --git a/tests/Makefile.am b/tests/Makefile.am +index 7db7db16..53dd70a7 100644 +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -80,13 +80,19 @@ backtrace-child-biarch$(EXEEXT): backtrace-child.c + $(AM_LDFLAGS) $(LDFLAGS) $(backtrace_child_LDFLAGS) \ + -o $@ $< + ++if GCOV ++GCOV_FLAGS=-fprofile-arcs -ftest-coverage ++else ++GCOV_FLAGS= ++endif ++ + # test_nlist checks its own symbol table, and expects various symbols + # to be in the order as specified in the source file. Explicitly set + # minimal CFLAGS + test-nlist$(EXEEXT): test-nlist.c + $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(test_nlist_CFLAGS) $(test_nlist_LDADD) -o $@ $< ++ $(test_nlist_CFLAGS) $(GCOV_FLAGS) -o $@ $< $(test_nlist_LDADD) + + TESTS = run-arextract.sh run-arsymtest.sh run-ar.sh newfile test-nlist \ + update1 update2 update3 update4 \ +-- +2.26.2 + diff --git a/elfutils-0.179.tar.bz2 b/elfutils-0.179.tar.bz2 deleted file mode 100644 index ed4641c..0000000 --- a/elfutils-0.179.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:25a545566cbacaa37ae6222e58f1c48ea4570f53ba991886e2f5ce96e22a23a2 -size 9057637 diff --git a/elfutils-0.179.tar.bz2.sig b/elfutils-0.179.tar.bz2.sig deleted file mode 100644 index 63a3e65..0000000 Binary files a/elfutils-0.179.tar.bz2.sig and /dev/null differ diff --git a/elfutils-0.180.tar.bz2 b/elfutils-0.180.tar.bz2 new file mode 100644 index 0000000..81cb7a5 --- /dev/null +++ b/elfutils-0.180.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b827b6e35c59d188ba97d7cf148fa8dc6f5c68eb6c5981888dfdbb758c0b569d +size 9079640 diff --git a/elfutils-0.180.tar.bz2.sig b/elfutils-0.180.tar.bz2.sig new file mode 100644 index 0000000..9eeed70 Binary files /dev/null and b/elfutils-0.180.tar.bz2.sig differ diff --git a/elfutils-debuginfod.changes b/elfutils-debuginfod.changes index d0723eb..37b0072 100644 --- a/elfutils-debuginfod.changes +++ b/elfutils-debuginfod.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Thu Jun 11 18:19:10 UTC 2020 - Martin Liška + +- Update to version 0.180: + elflint: Allow SHF_EXCLUDE as generic section flag when --gnu is given. + libdw, readelf: Handle GCC LTO .gnu.debuglto_ prefix. + libdw: Use correct CU to resolve file names in dwarf_decl_file. + libdwfl: Handle debugaltlink in dwfl_standard_find_debuginfo. + size: Also obey radix printing for bsd format. + nm: Explicitly print weak 'V' or 'T' and common 'C' symbols. +- Add 0001-tests-Add-GCOV-flags-when-necessary.patch in order to fix + an unresolved symbol. +- Enable LTO: boo#1138796 by adding -flto-partition=none and -Wno-error=stack-usage. + ------------------------------------------------------------------- Mon Mar 30 12:07:18 UTC 2020 - Martin Liška diff --git a/elfutils-debuginfod.spec b/elfutils-debuginfod.spec index 9c549f6..933e6ef 100644 --- a/elfutils-debuginfod.spec +++ b/elfutils-debuginfod.spec @@ -17,7 +17,7 @@ Name: elfutils-debuginfod -Version: 0.179 +Version: 0.180 Release: 0 Summary: debuginfod part of elfutils License: GPL-3.0-or-later @@ -30,6 +30,7 @@ Source1: https://fedorahosted.org/releases/e/l/elfutils/%{version}/elfuti Source2: elfutils.changes Source3: elfutils.keyring Patch0: remove-run-large-elf-file.sh.patch +Patch1: 0001-tests-Add-GCOV-flags-when-necessary.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: bison @@ -90,9 +91,10 @@ The elfutils-debuginfod-client package contains a command-line frontend. %prep %setup -q -n elfutils-%version %patch0 -p1 +%patch1 -p1 %build -%define _lto_cflags %{nil} +%global _lto_cflags %{_lto_cflags} -flto-partition=none -Wno-error=stack-usage= # Change DATE/TIME macros to use last change time of elfutils.changes # See http://lists.opensuse.org/opensuse-factory/2011-05/msg00304.html modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")" diff --git a/elfutils.changes b/elfutils.changes index 8036a6a..6db41a3 100644 --- a/elfutils.changes +++ b/elfutils.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Thu Jun 11 18:19:10 UTC 2020 - Martin Liška + +- Update to version 0.180: + elflint: Allow SHF_EXCLUDE as generic section flag when --gnu is given. + libdw, readelf: Handle GCC LTO .gnu.debuglto_ prefix. + libdw: Use correct CU to resolve file names in dwarf_decl_file. + libdwfl: Handle debugaltlink in dwfl_standard_find_debuginfo. + size: Also obey radix printing for bsd format. + nm: Explicitly print weak 'V' or 'T' and common 'C' symbols. +- Add 0001-tests-Add-GCOV-flags-when-necessary.patch in order to fix + an unresolved symbol. +- Enable LTO: boo#1138796 by adding -flto-partition=none and -Wno-error=stack-usage. + ------------------------------------------------------------------- Mon Mar 30 12:07:18 UTC 2020 - Martin Liška diff --git a/elfutils.spec b/elfutils.spec index e4ba914..d5ccfe7 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -17,7 +17,7 @@ Name: elfutils -Version: 0.179 +Version: 0.180 Release: 0 Summary: Higher-level library to access ELF files License: GPL-3.0-or-later @@ -33,6 +33,7 @@ Source3: %{name}.changes Source5: %{name}.keyring Patch2: cfi-fix.patch Patch3: remove-run-large-elf-file.sh.patch +Patch4: 0001-tests-Add-GCOV-flags-when-necessary.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: bison @@ -109,9 +110,10 @@ applications that require libdw. %setup -q %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build -%define _lto_cflags %{nil} +%global _lto_cflags %{_lto_cflags} -flto-partition=none -Wno-error=stack-usage= # Change DATE/TIME macros to use last change time of elfutils.changes # See http://lists.opensuse.org/opensuse-factory/2011-05/msg00304.html modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"