From d6b41dd3c21e0f160ff2a4195b4638988b8f60c9d385d53d89f23070f5459417 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 15 Jun 2020 06:16:18 +0000 Subject: [PATCH 1/4] Accepting request 814087 from home:marxin:branches:Base:System-update - 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. - 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. OBS-URL: https://build.opensuse.org/request/show/814087 OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=156 --- ...-tests-Add-GCOV-flags-when-necessary.patch | 54 ++++++++++++++++++ elfutils-0.179.tar.bz2 | 3 - elfutils-0.179.tar.bz2.sig | Bin 310 -> 0 bytes elfutils-0.180.tar.bz2 | 3 + elfutils-0.180.tar.bz2.sig | Bin 0 -> 310 bytes elfutils-debuginfod.changes | 14 +++++ elfutils-debuginfod.spec | 6 +- elfutils.changes | 14 +++++ elfutils.spec | 6 +- 9 files changed, 93 insertions(+), 7 deletions(-) create mode 100644 0001-tests-Add-GCOV-flags-when-necessary.patch delete mode 100644 elfutils-0.179.tar.bz2 delete mode 100644 elfutils-0.179.tar.bz2.sig create mode 100644 elfutils-0.180.tar.bz2 create mode 100644 elfutils-0.180.tar.bz2.sig 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 63a3e65b11180dcd5cd15d5b3498038583cfda9b7c4e67dc19f58c6548ef3672..0000000000000000000000000000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 310 zcmV-60m=S}0W$;u0SEvc79j)@c8ZpHS&$HV4KLsPSL4jA*_wC-0$zdRtN;oL5d2r; z%&gg(cyo3L0EHO`UPFx+Kx(W#Ti?Wz1^v+FjY164D$t-FQ^`-)%`GHu+#;JW93ck( zh9^h_Z(-evyiU4O*r?tTzF2u=g=`%>86h9H?xLQFfhwElu)ByGI(52Sms`%9#tkeq zk(A6F;eqE)BvyKzmr<9=G6PP4mj|UZoPOwCbUVK0O*Dz+jyR6m{W`Tc2m0nk?qE{V z-mcqT6zu6{x#_S4M(>um0{zpWk**3Vq7T)8?9rIcFS>q^CCOwte*9d5_=5i=uS_uw z{(Q-N3#*MWljuaRF^h#?=D@^!8#tNj$XooKTApGbR?~q_9|T=4AjG5)<9L(CtCNN` Iu)Si7qIX!7CIA2c 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 0000000000000000000000000000000000000000000000000000000000000000..9eeed7041c213011a304db8c0677f651c3754efda9d24cd77c9fd4010c817638 GIT binary patch literal 310 zcmV-60m=S}0W$;u0SEvc79j)@c8ZpHS&$HV4KLsPSL4jA*_wC-0$$=!F8~S&5d2r; z%&gg(c*))f0GsRkRC4SRX5v98tI(}NH-lL_wQnSy!JdN}MEi~u6^9iYRaS01R~|Ls zHI>H>>A2zgh3fI@mO%q8j}d(tJr3@u?HcnAStf)(Nh%%QBB3ERTQ#CB;0U~3;TYJ< zPNS@B)5VKCiJmw_V>G~^hGfi{K-&MDj~+Duzj5t>Zag8w4%hg9;+~1;zjupeDhzk{@vBMsUglaiE`9y0RDD&Fq_cL^$ z|3ERhr!R^GKkR#&`Q6rj-9CWTX4VTEIK{}LGLZXVE5XAth5|IVQU3lB>{?lNe=TK{ IDYC + +- 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")" From 41179dffa3e2f49615645da7b9f096a548d0fa4d949661c1158be38e643044bc Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 17 Jun 2020 06:56:07 +0000 Subject: [PATCH 2/4] Accepting request 814639 from home:marxin:branches:Base:System222 - Remove remove-run-large-elf-file.sh.patch as it now checks for memory size. - Use autosetup. - Remove cfi-fix.patch - should not be needed now. - Remove remove-run-large-elf-file.sh.patch as it now checks for memory size. - Use autosetup. OBS-URL: https://build.opensuse.org/request/show/814639 OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=157 --- cfi-fix.patch | 11 ----- elfutils-debuginfod.changes | 7 +++ elfutils-debuginfod.spec | 5 +-- elfutils.changes | 8 ++++ elfutils.spec | 7 +-- remove-run-large-elf-file.sh.patch | 68 ------------------------------ 6 files changed, 17 insertions(+), 89 deletions(-) delete mode 100644 cfi-fix.patch delete mode 100644 remove-run-large-elf-file.sh.patch diff --git a/cfi-fix.patch b/cfi-fix.patch deleted file mode 100644 index 59bf1f8..0000000 --- a/cfi-fix.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff --git a/tests/run-next-cfi-self.sh b/tests/run-next-cfi-self.sh -index 2c42ea3f..fa91b746 100755 ---- a/tests/run-next-cfi-self.sh -+++ b/tests/run-next-cfi-self.sh -@@ -18,4 +18,5 @@ - . $srcdir/test-subr.sh - - # Sanity check toolchain/dwarf_next_cfi --testrun_on_self ${abs_builddir}/next_cfi -+testrun_on_self_exe ${abs_builddir}/next_cfi -+testrun_on_self_lib ${abs_builddir}/next_cfi diff --git a/elfutils-debuginfod.changes b/elfutils-debuginfod.changes index 37b0072..67c1d83 100644 --- a/elfutils-debuginfod.changes +++ b/elfutils-debuginfod.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jun 15 07:12:57 UTC 2020 - Martin Liška + +- Remove remove-run-large-elf-file.sh.patch as it now checks for memory + size. +- Use autosetup. + ------------------------------------------------------------------- Thu Jun 11 18:19:10 UTC 2020 - Martin Liška diff --git a/elfutils-debuginfod.spec b/elfutils-debuginfod.spec index 933e6ef..f85a224 100644 --- a/elfutils-debuginfod.spec +++ b/elfutils-debuginfod.spec @@ -29,7 +29,6 @@ Source: https://fedorahosted.org/releases/e/l/elfutils/%{version}/elfuti Source1: https://fedorahosted.org/releases/e/l/elfutils/%{version}/elfutils-%{version}.tar.bz2.sig 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 @@ -89,9 +88,7 @@ The elfutils-debuginfod-client package contains a command-line frontend. %lang_package %prep -%setup -q -n elfutils-%version -%patch0 -p1 -%patch1 -p1 +%autosetup -n elfutils-%version -p1 %build %global _lto_cflags %{_lto_cflags} -flto-partition=none -Wno-error=stack-usage= diff --git a/elfutils.changes b/elfutils.changes index 6db41a3..ce8cdd9 100644 --- a/elfutils.changes +++ b/elfutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Jun 15 07:12:38 UTC 2020 - Martin Liška + +- Remove cfi-fix.patch - should not be needed now. +- Remove remove-run-large-elf-file.sh.patch as it now checks for memory + size. +- Use autosetup. + ------------------------------------------------------------------- Thu Jun 11 18:19:10 UTC 2020 - Martin Liška diff --git a/elfutils.spec b/elfutils.spec index d5ccfe7..739a826 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -31,8 +31,6 @@ Source1: README-BEFORE-ADDING-PATCHES Source2: baselibs.conf 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 @@ -107,10 +105,7 @@ applications that require libdw. %lang_package %prep -%setup -q -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 +%autosetup -p1 %build %global _lto_cflags %{_lto_cflags} -flto-partition=none -Wno-error=stack-usage= diff --git a/remove-run-large-elf-file.sh.patch b/remove-run-large-elf-file.sh.patch deleted file mode 100644 index 140928e..0000000 --- a/remove-run-large-elf-file.sh.patch +++ /dev/null @@ -1,68 +0,0 @@ -From e2b5eedefa1ed6a713a08e683eaaa5ae004492c3 Mon Sep 17 00:00:00 2001 -From: Martin Liska -Date: Wed, 27 Nov 2019 10:30:58 +0100 -Subject: [PATCH] Remove run-large-elf-file.sh test as it fails due to OOM. - ---- - tests/Makefile.am | 2 -- - tests/Makefile.in | 10 +--------- - 2 files changed, 1 insertion(+), 11 deletions(-) - -diff --git a/tests/Makefile.am b/tests/Makefile.am -index 2ff7dfc..7cdbafc 100644 ---- a/tests/Makefile.am -+++ b/tests/Makefile.am -@@ -84,7 +84,6 @@ TESTS = run-arextract.sh run-arsymtest.sh run-ar.sh newfile test-nlist \ - run-next-files.sh run-next-lines.sh \ - run-get-pubnames.sh run-get-aranges.sh run-allfcts.sh \ - run-show-abbrev.sh run-line2addr.sh hash \ -- run-large-elf-file.sh \ - newscn run-strip-test.sh run-strip-test2.sh \ - run-strip-test3.sh run-strip-test4.sh run-strip-test5.sh \ - run-strip-test6.sh run-strip-test7.sh run-strip-test8.sh \ -@@ -427,7 +426,6 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh run-ar.sh \ - testfile-riscv64-core.bz2 \ - run-reverse-sections.sh run-reverse-sections-self.sh \ - run-copyadd-sections.sh run-copymany-sections.sh \ -- run-large-elf-file.sh \ - run-typeiter-many.sh run-strip-test-many.sh \ - testfile-debug-rel-ppc64-g.o.bz2 \ - testfile-debug-rel-ppc64-z.o.bz2 \ -diff --git a/tests/Makefile.in b/tests/Makefile.in -index 258dd64..fe9641f 100644 ---- a/tests/Makefile.in -+++ b/tests/Makefile.in -@@ -141,7 +141,7 @@ TESTS = run-arextract.sh run-arsymtest.sh run-ar.sh newfile$(EXEEXT) \ - run-get-files.sh run-get-lines.sh run-next-files.sh \ - run-next-lines.sh run-get-pubnames.sh run-get-aranges.sh \ - run-allfcts.sh run-show-abbrev.sh run-line2addr.sh \ -- hash$(EXEEXT) run-large-elf-file.sh newscn$(EXEEXT) \ -+ hash$(EXEEXT) newscn$(EXEEXT) \ - run-strip-test.sh run-strip-test2.sh run-strip-test3.sh \ - run-strip-test4.sh run-strip-test5.sh run-strip-test6.sh \ - run-strip-test7.sh run-strip-test8.sh run-strip-test9.sh \ -@@ -1423,7 +1423,6 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh run-ar.sh \ - testfile-riscv64-core.bz2 \ - run-reverse-sections.sh run-reverse-sections-self.sh \ - run-copyadd-sections.sh run-copymany-sections.sh \ -- run-large-elf-file.sh \ - run-typeiter-many.sh run-strip-test-many.sh \ - testfile-debug-rel-ppc64-g.o.bz2 \ - testfile-debug-rel-ppc64-z.o.bz2 \ -@@ -2581,13 +2580,6 @@ hash.log: hash$(EXEEXT) - --log-file $$b.log --trs-file $$b.trs \ - $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ - "$$tst" $(AM_TESTS_FD_REDIRECT) --run-large-elf-file.sh.log: run-large-elf-file.sh -- @p='run-large-elf-file.sh'; \ -- b='run-large-elf-file.sh'; \ -- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ -- --log-file $$b.log --trs-file $$b.trs \ -- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ -- "$$tst" $(AM_TESTS_FD_REDIRECT) - newscn.log: newscn$(EXEEXT) - @p='newscn$(EXEEXT)'; \ - b='newscn'; \ --- -2.24.0 - From 2fd880f1c7d8d375952dbd04cec2ecf35fd10e63612bda149c33f5a85a4b3292 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 9 Sep 2020 08:00:06 +0000 Subject: [PATCH 3/4] Accepting request 833040 from home:Guillaume_G:branches:Base:System - Update to version 0.181: libelf: elf_update now compensates (fixes up) a bad sh_addralign for SHF_COMPRESSED sections. libdebuginfod: configure now takes --enable-libdebuginfod=dummy or --disable-libdebuginfod for bootstrapping. DEBUGINFOD_URLS now accepts "scheme-free" urls (guessing at what the user meant, either http:// or file://) readelf, elflint: Handle aarch64 bti, pac bits in dynamic table and gnu property notes. libdw, readelf: Recognize DW_CFA_AARCH64_negate_ra_state. Allows unwinding on arm64 for code that is compiled for PAC (Pointer Authentication Code) as long as it isn't enabled - Drop upstream patch: * 0001-tests-Add-GCOV-flags-when-necessary.patch OBS-URL: https://build.opensuse.org/request/show/833040 OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=158 --- ...-tests-Add-GCOV-flags-when-necessary.patch | 54 ------------------ elfutils-0.180.tar.bz2 | 3 - elfutils-0.180.tar.bz2.sig | Bin 310 -> 0 bytes elfutils-0.181.tar.bz2 | 3 + elfutils-0.181.tar.bz2.sig | Bin 0 -> 310 bytes elfutils-debuginfod.changes | 18 ++++++ elfutils-debuginfod.spec | 15 +++-- elfutils.changes | 18 ++++++ elfutils.spec | 8 +-- 9 files changed, 49 insertions(+), 70 deletions(-) delete mode 100644 0001-tests-Add-GCOV-flags-when-necessary.patch delete mode 100644 elfutils-0.180.tar.bz2 delete mode 100644 elfutils-0.180.tar.bz2.sig create mode 100644 elfutils-0.181.tar.bz2 create mode 100644 elfutils-0.181.tar.bz2.sig diff --git a/0001-tests-Add-GCOV-flags-when-necessary.patch b/0001-tests-Add-GCOV-flags-when-necessary.patch deleted file mode 100644 index 715d9f1..0000000 --- a/0001-tests-Add-GCOV-flags-when-necessary.patch +++ /dev/null @@ -1,54 +0,0 @@ -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.180.tar.bz2 b/elfutils-0.180.tar.bz2 deleted file mode 100644 index 81cb7a5..0000000 --- a/elfutils-0.180.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 9eeed7041c213011a304db8c0677f651c3754efda9d24cd77c9fd4010c817638..0000000000000000000000000000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 310 zcmV-60m=S}0W$;u0SEvc79j)@c8ZpHS&$HV4KLsPSL4jA*_wC-0$$=!F8~S&5d2r; z%&gg(c*))f0GsRkRC4SRX5v98tI(}NH-lL_wQnSy!JdN}MEi~u6^9iYRaS01R~|Ls zHI>H>>A2zgh3fI@mO%q8j}d(tJr3@u?HcnAStf)(Nh%%QBB3ERTQ#CB;0U~3;TYJ< zPNS@B)5VKCiJmw_V>G~^hGfi{K-&MDj~+Duzj5t>Zag8w4%hg9;+~1;zjupeDhzk{@vBMsUglaiE`9y0RDD&Fq_cL^$ z|3ERhr!R^GKkR#&`Q6rj-9CWTX4VTEIK{}LGLZXVE5XAth5|IVQU3lB>{?lNe=TK{ IDYCO5d2r; z%&gg(c>S9P|6mKy;Qo0p=_a(z#LUDBx{r1cG0VA)z5lXJ3K2Uwcj9TMvcKAG%MZhO z_Z~96s|VMo{D{xo5!*OMwOJ3>^`FMg2ZwdyAfL5iddH(-%nv_EZJm@nO-XdniPP(e zRpMfRf)T7dt6RNjnz^hl$y;whpv1WCYcx`b>dtj}+cRxxf&P+adr{HTDL;n|t@_B< z<9tP~5!vZ#6OrVy!pPo@d>V+pc`STZexDCsYb#$H!<#XMWFge$30eI~D2xAHBpp@t zW&ROK1BKbC9CWd(#GfD>C2g5cX`B3d^$lm@)3U%_F<5V$?7 + +- Update to version 0.181: + libelf: elf_update now compensates (fixes up) a bad sh_addralign for + SHF_COMPRESSED sections. + libdebuginfod: configure now takes --enable-libdebuginfod=dummy or + --disable-libdebuginfod for bootstrapping. + DEBUGINFOD_URLS now accepts "scheme-free" urls + (guessing at what the user meant, either http:// or file://) + readelf, elflint: Handle aarch64 bti, pac bits in dynamic table and gnu + property notes. + libdw, readelf: Recognize DW_CFA_AARCH64_negate_ra_state. Allows unwinding + on arm64 for code that is compiled for PAC (Pointer + Authentication Code) as long as it isn't enabled +- Drop upstream patch: + * 0001-tests-Add-GCOV-flags-when-necessary.patch + ------------------------------------------------------------------- Mon Jun 15 07:12:57 UTC 2020 - Martin Liška diff --git a/elfutils-debuginfod.spec b/elfutils-debuginfod.spec index f85a224..d39beca 100644 --- a/elfutils-debuginfod.spec +++ b/elfutils-debuginfod.spec @@ -17,25 +17,27 @@ Name: elfutils-debuginfod -Version: 0.180 +Version: 0.181 Release: 0 Summary: debuginfod part of elfutils License: GPL-3.0-or-later Group: Development/Tools/Building URL: https://sourceware.org/elfutils/ - #Git-Clone: git://sourceware.org/git/elfutils Source: https://fedorahosted.org/releases/e/l/elfutils/%{version}/elfutils-%{version}.tar.bz2 Source1: https://fedorahosted.org/releases/e/l/elfutils/%{version}/elfutils-%{version}.tar.bz2.sig Source2: elfutils.changes Source3: elfutils.keyring -Patch1: 0001-tests-Add-GCOV-flags-when-necessary.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: bison +# For the run-debuginfod-find.sh test case in %check for /usr/sbin/ss +BuildRequires: curl BuildRequires: flex BuildRequires: gcc-c++ +BuildRequires: iproute BuildRequires: libbz2-devel +BuildRequires: pkgconfig BuildRequires: xz-devel BuildRequires: zlib-devel # For debuginfod @@ -43,12 +45,9 @@ BuildRequires: pkgconfig(libarchive) >= 3.1.2 BuildRequires: pkgconfig(libcurl) >= 7.29.0 BuildRequires: pkgconfig(libmicrohttpd) >= 0.9.33 BuildRequires: pkgconfig(sqlite3) >= 3.7.17 -# For the run-debuginfod-find.sh test case in %check for /usr/sbin/ss -BuildRequires: curl -BuildRequires: iproute +BuildRequires: pkgconfig(systemd) Requires: debuginfod-client = %{version} Requires: elfutils = %{version} -BuildRequires: pkgconfig(systemd) Requires: sysconfig Requires(post): %fillup_prereq %{?systemd_requires} @@ -134,7 +133,7 @@ rm -f %{buildroot}/%{_includedir}/dwarf.h rm -f %{buildroot}/%{_libdir}/libdw* rm -f %{buildroot}/%{_mandir}/man3/elf_*.3* rm -f %{buildroot}/%{_mandir}/man1/eu-*.1* -rm -rf %{buildroot}/usr/share/locale/ +rm -rf %{buildroot}%{_datadir}/locale/ rm -f %{buildroot}/%{_libdir}/pkgconfig/libdw.pc rm -f %{buildroot}/%{_libdir}/pkgconfig/libelf.pc diff --git a/elfutils.changes b/elfutils.changes index ce8cdd9..e9113c7 100644 --- a/elfutils.changes +++ b/elfutils.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Tue Sep 8 15:18:57 UTC 2020 - Guillaume GARDET + +- Update to version 0.181: + libelf: elf_update now compensates (fixes up) a bad sh_addralign for + SHF_COMPRESSED sections. + libdebuginfod: configure now takes --enable-libdebuginfod=dummy or + --disable-libdebuginfod for bootstrapping. + DEBUGINFOD_URLS now accepts "scheme-free" urls + (guessing at what the user meant, either http:// or file://) + readelf, elflint: Handle aarch64 bti, pac bits in dynamic table and gnu + property notes. + libdw, readelf: Recognize DW_CFA_AARCH64_negate_ra_state. Allows unwinding + on arm64 for code that is compiled for PAC (Pointer + Authentication Code) as long as it isn't enabled +- Drop upstream patch: + * 0001-tests-Add-GCOV-flags-when-necessary.patch + ------------------------------------------------------------------- Mon Jun 15 07:12:38 UTC 2020 - Martin Liška diff --git a/elfutils.spec b/elfutils.spec index 739a826..0ddf5ce 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -17,21 +17,19 @@ Name: elfutils -Version: 0.180 +Version: 0.181 Release: 0 Summary: Higher-level library to access ELF files License: GPL-3.0-or-later Group: Development/Tools/Building URL: https://sourceware.org/elfutils/ - #Git-Clone: git://sourceware.org/git/elfutils Source: https://fedorahosted.org/releases/e/l/%{name}/%{version}/%{name}-%{version}.tar.bz2 -Source4: https://fedorahosted.org/releases/e/l/%{name}/%{version}/%{name}-%{version}.tar.bz2.sig Source1: README-BEFORE-ADDING-PATCHES Source2: baselibs.conf Source3: %{name}.changes +Source4: https://fedorahosted.org/releases/e/l/%{name}/%{version}/%{name}-%{version}.tar.bz2.sig Source5: %{name}.keyring -Patch4: 0001-tests-Add-GCOV-flags-when-necessary.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: bison @@ -128,7 +126,7 @@ CFLAGS+=" -fPIC" autoreconf -fi # some patches create new test scripts, which are created 644 by default chmod a+x tests/run*.sh -%configure --program-prefix=eu- --disable-debuginfod +%configure --program-prefix=eu- --disable-debuginfod --disable-libdebuginfod %make_build %install From 94fdbb55f3e363712465c90e2b45d18eab8087c392a501f28d5ca16b3041be69 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 15 Sep 2020 12:22:08 +0000 Subject: [PATCH 4/4] Accepting request 834600 from home:Guillaume_G:branches:Base:System - Disable LTO again - boo#1138796 Adding -flto-partition=none and -Wno-error=stack-usage were not enough: [ 123s] libasm-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libasm.a [ 123s] libdw-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libdw.a [ 123s] libelf-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libelf.a [ 123s] This archive does not contain a non-empty .text section. The archive was not [ 123s] created with -ffat-lto-objects option. And adding -ffat-lto-objects breaks run-show-die-info.sh test. OBS-URL: https://build.opensuse.org/request/show/834600 OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=159 --- elfutils-debuginfod.changes | 13 +++++++++++++ elfutils.spec | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/elfutils-debuginfod.changes b/elfutils-debuginfod.changes index 668ec1f..4e995f0 100644 --- a/elfutils-debuginfod.changes +++ b/elfutils-debuginfod.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Tue Sep 15 11:50:27 UTC 2020 - Guillaume GARDET + +- Disable LTO again - boo#1138796 + Adding -flto-partition=none and -Wno-error=stack-usage were + not enough: + [ 123s] libasm-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libasm.a + [ 123s] libdw-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libdw.a + [ 123s] libelf-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libelf.a + [ 123s] This archive does not contain a non-empty .text section. The archive was not + [ 123s] created with -ffat-lto-objects option. + And adding -ffat-lto-objects breaks run-show-die-info.sh test. + ------------------------------------------------------------------- Tue Sep 8 15:18:57 UTC 2020 - Guillaume GARDET diff --git a/elfutils.spec b/elfutils.spec index 0ddf5ce..e507388 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -106,7 +106,7 @@ applications that require libdw. %autosetup -p1 %build -%global _lto_cflags %{_lto_cflags} -flto-partition=none -Wno-error=stack-usage= +%global _lto_cflags %{nil} # 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")"