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-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.181.tar.bz2 b/elfutils-0.181.tar.bz2 new file mode 100644 index 0000000..56c9652 --- /dev/null +++ b/elfutils-0.181.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29a6ad7421ec2acfee489bb4a699908281ead2cb63a20a027ce8804a165f0eb3 +size 9088984 diff --git a/elfutils-0.181.tar.bz2.sig b/elfutils-0.181.tar.bz2.sig new file mode 100644 index 0000000..ab935a4 Binary files /dev/null and b/elfutils-0.181.tar.bz2.sig differ diff --git a/elfutils-debuginfod.changes b/elfutils-debuginfod.changes index d0723eb..4e995f0 100644 --- a/elfutils-debuginfod.changes +++ b/elfutils-debuginfod.changes @@ -1,3 +1,55 @@ +------------------------------------------------------------------- +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 + +- 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 + +- 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 + +- 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..d39beca 100644 --- a/elfutils-debuginfod.spec +++ b/elfutils-debuginfod.spec @@ -17,25 +17,27 @@ Name: elfutils-debuginfod -Version: 0.179 +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 -Patch0: remove-run-large-elf-file.sh.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} @@ -88,11 +87,10 @@ The elfutils-debuginfod-client package contains a command-line frontend. %lang_package %prep -%setup -q -n elfutils-%version -%patch0 -p1 +%autosetup -n elfutils-%version -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")" @@ -135,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 8036a6a..e9113c7 100644 --- a/elfutils.changes +++ b/elfutils.changes @@ -1,3 +1,43 @@ +------------------------------------------------------------------- +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 + +- 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 + +- 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..e507388 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -17,22 +17,19 @@ Name: elfutils -Version: 0.179 +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 -Patch2: cfi-fix.patch -Patch3: remove-run-large-elf-file.sh.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: bison @@ -106,12 +103,10 @@ applications that require libdw. %lang_package %prep -%setup -q -%patch2 -p1 -%patch3 -p1 +%autosetup -p1 %build -%define _lto_cflags %{nil} +%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")" @@ -131,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 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 -