SHA256
1
0
forked from pool/elfutils

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
This commit is contained in:
Richard Biener 2020-09-09 08:00:06 +00:00 committed by Git OBS Bridge
parent 41179dffa3
commit 2fd880f1c7
9 changed files with 49 additions and 70 deletions

View File

@ -1,54 +0,0 @@
From 3eaa4421b2422452b40547aab3e8da0749990ef9 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
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 <mark@klomp.org>
---
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 <mark@klomp.org>
+
+ * Makefile.am (nlist-test): Add GCOV flags when necessary.
+
2020-06-06 Mark Wielaard <mark@klomp.org>
* 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

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b827b6e35c59d188ba97d7cf148fa8dc6f5c68eb6c5981888dfdbb758c0b569d
size 9079640

Binary file not shown.

3
elfutils-0.181.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:29a6ad7421ec2acfee489bb4a699908281ead2cb63a20a027ce8804a165f0eb3
size 9088984

BIN
elfutils-0.181.tar.bz2.sig Normal file

Binary file not shown.

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
Tue Sep 8 15:18:57 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- 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 <mliska@suse.cz> Mon Jun 15 07:12:57 UTC 2020 - Martin Liška <mliska@suse.cz>

View File

@ -17,25 +17,27 @@
Name: elfutils-debuginfod Name: elfutils-debuginfod
Version: 0.180 Version: 0.181
Release: 0 Release: 0
Summary: debuginfod part of elfutils Summary: debuginfod part of elfutils
License: GPL-3.0-or-later License: GPL-3.0-or-later
Group: Development/Tools/Building Group: Development/Tools/Building
URL: https://sourceware.org/elfutils/ URL: https://sourceware.org/elfutils/
#Git-Clone: git://sourceware.org/git/elfutils #Git-Clone: git://sourceware.org/git/elfutils
Source: https://fedorahosted.org/releases/e/l/elfutils/%{version}/elfutils-%{version}.tar.bz2 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 Source1: https://fedorahosted.org/releases/e/l/elfutils/%{version}/elfutils-%{version}.tar.bz2.sig
Source2: elfutils.changes Source2: elfutils.changes
Source3: elfutils.keyring Source3: elfutils.keyring
Patch1: 0001-tests-Add-GCOV-flags-when-necessary.patch
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: bison BuildRequires: bison
# For the run-debuginfod-find.sh test case in %check for /usr/sbin/ss
BuildRequires: curl
BuildRequires: flex BuildRequires: flex
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: iproute
BuildRequires: libbz2-devel BuildRequires: libbz2-devel
BuildRequires: pkgconfig
BuildRequires: xz-devel BuildRequires: xz-devel
BuildRequires: zlib-devel BuildRequires: zlib-devel
# For debuginfod # For debuginfod
@ -43,12 +45,9 @@ BuildRequires: pkgconfig(libarchive) >= 3.1.2
BuildRequires: pkgconfig(libcurl) >= 7.29.0 BuildRequires: pkgconfig(libcurl) >= 7.29.0
BuildRequires: pkgconfig(libmicrohttpd) >= 0.9.33 BuildRequires: pkgconfig(libmicrohttpd) >= 0.9.33
BuildRequires: pkgconfig(sqlite3) >= 3.7.17 BuildRequires: pkgconfig(sqlite3) >= 3.7.17
# For the run-debuginfod-find.sh test case in %check for /usr/sbin/ss BuildRequires: pkgconfig(systemd)
BuildRequires: curl
BuildRequires: iproute
Requires: debuginfod-client = %{version} Requires: debuginfod-client = %{version}
Requires: elfutils = %{version} Requires: elfutils = %{version}
BuildRequires: pkgconfig(systemd)
Requires: sysconfig Requires: sysconfig
Requires(post): %fillup_prereq Requires(post): %fillup_prereq
%{?systemd_requires} %{?systemd_requires}
@ -134,7 +133,7 @@ rm -f %{buildroot}/%{_includedir}/dwarf.h
rm -f %{buildroot}/%{_libdir}/libdw* rm -f %{buildroot}/%{_libdir}/libdw*
rm -f %{buildroot}/%{_mandir}/man3/elf_*.3* rm -f %{buildroot}/%{_mandir}/man3/elf_*.3*
rm -f %{buildroot}/%{_mandir}/man1/eu-*.1* 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/libdw.pc
rm -f %{buildroot}/%{_libdir}/pkgconfig/libelf.pc rm -f %{buildroot}/%{_libdir}/pkgconfig/libelf.pc

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
Tue Sep 8 15:18:57 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- 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 <mliska@suse.cz> Mon Jun 15 07:12:38 UTC 2020 - Martin Liška <mliska@suse.cz>

View File

@ -17,21 +17,19 @@
Name: elfutils Name: elfutils
Version: 0.180 Version: 0.181
Release: 0 Release: 0
Summary: Higher-level library to access ELF files Summary: Higher-level library to access ELF files
License: GPL-3.0-or-later License: GPL-3.0-or-later
Group: Development/Tools/Building Group: Development/Tools/Building
URL: https://sourceware.org/elfutils/ URL: https://sourceware.org/elfutils/
#Git-Clone: git://sourceware.org/git/elfutils #Git-Clone: git://sourceware.org/git/elfutils
Source: https://fedorahosted.org/releases/e/l/%{name}/%{version}/%{name}-%{version}.tar.bz2 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 Source1: README-BEFORE-ADDING-PATCHES
Source2: baselibs.conf Source2: baselibs.conf
Source3: %{name}.changes Source3: %{name}.changes
Source4: https://fedorahosted.org/releases/e/l/%{name}/%{version}/%{name}-%{version}.tar.bz2.sig
Source5: %{name}.keyring Source5: %{name}.keyring
Patch4: 0001-tests-Add-GCOV-flags-when-necessary.patch
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: bison BuildRequires: bison
@ -128,7 +126,7 @@ CFLAGS+=" -fPIC"
autoreconf -fi autoreconf -fi
# some patches create new test scripts, which are created 644 by default # some patches create new test scripts, which are created 644 by default
chmod a+x tests/run*.sh chmod a+x tests/run*.sh
%configure --program-prefix=eu- --disable-debuginfod %configure --program-prefix=eu- --disable-debuginfod --disable-libdebuginfod
%make_build %make_build
%install %install