diff --git a/elfutils-0.170-Wpackednotaligned.patch b/elfutils-0.170-Wpackednotaligned.patch deleted file mode 100644 index 2588f7d..0000000 --- a/elfutils-0.170-Wpackednotaligned.patch +++ /dev/null @@ -1,43 +0,0 @@ -commit ab6b37ac32ddf2f2f11f800a770170814f5cbb8b -Author: Mark Wielaard -Date: Tue Oct 24 14:23:30 2017 +0200 - - backends: Ignore GCC8 -Wpacked-not-aligned for m68k_corenote.c. - - The GCC8 -Wpacked-not-aligned warns if a structure field with explicit - padding in a packed structure will be misaligned. m68k prstatus core - notes are described by a packed structure which has such aligned structure - fields. - - Signed-off-by: Mark Wielaard - -diff --git a/backends/Makefile.am b/backends/Makefile.am -index 0fde0cb0..2c62add2 100644 ---- a/backends/Makefile.am -+++ b/backends/Makefile.am -@@ -119,6 +119,13 @@ m68k_SRCS = m68k_init.c m68k_symbol.c m68k_regs.c \ - libebl_m68k_pic_a_SOURCES = $(m68k_SRCS) - am_libebl_m68k_pic_a_OBJECTS = $(m68k_SRCS:.c=.os) - -+# m68k prstatus core notes are described by a packed structure -+# which has not naturally aligned fields. Since we don't access -+# these fields directly, but take their offset to be used later -+# to extract the data through elfxx_xlatetom/memmove, this isn't -+# an issue. -+m68k_corenote_no_Wpacked_not_aligned = yes -+ - bpf_SRCS = bpf_init.c bpf_regs.c - cpu_bpf = ../libcpu/libcpu_bpf.a - libebl_bpf_pic_a_SOURCES = $(bpf_SRCS) -diff --git a/config/eu.am b/config/eu.am -index 796f3883..05c27f02 100644 ---- a/config/eu.am -+++ b/config/eu.am -@@ -74,6 +74,7 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \ - $(if $($(*F)_no_Werror),,-Werror) \ - $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \ - $(if $($(*F)_no_Wstack_usage),,$(STACK_USAGE_WARNING)) \ -+ $(if $($(*F)_no_Wpacked_not_aligned),-Wno-packed-not-aligned,) \ - $($(*F)_CFLAGS) - - COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE)) diff --git a/elfutils-0.170-stripnothing.patch b/elfutils-0.170-stripnothing.patch deleted file mode 100644 index 4010163..0000000 --- a/elfutils-0.170-stripnothing.patch +++ /dev/null @@ -1,26 +0,0 @@ -commit 8f0140ace401197beaed1df6a48f259756d8bbd9 -Author: Dmitry V. Levin -Date: Tue Aug 8 19:06:16 2017 +0300 - - tests: robustify run-strip-nothing.sh against unstripped libc_nonshared.a - - When glibc's libc_nonshared.a contains objects with debug info, - this debug info is leaked into every output file produced by gcc. - Change run-strip-nothing.sh to use "gcc -s" instead of plain "gcc" - for producing objects without debug info. - - Signed-off-by: Dmitry V. Levin - -diff --git a/tests/run-strip-nothing.sh b/tests/run-strip-nothing.sh -index e80bd906..914fdfbf 100755 ---- a/tests/run-strip-nothing.sh -+++ b/tests/run-strip-nothing.sh -@@ -23,7 +23,7 @@ - tempfiles a.out strip.out debug.out - - # Create no-debug a.out. --echo "int main() { return 1; }" | gcc -xc - -+echo "int main() { return 1; }" | gcc -s -xc - - - # strip to file - testrun ${abs_top_builddir}/src/strip -g -o strip.out || diff --git a/elfutils-0.170.tar.bz2 b/elfutils-0.170.tar.bz2 deleted file mode 100644 index 547b216..0000000 --- a/elfutils-0.170.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1f844775576b79bdc9f9c717a50058d08620323c1e935458223a12f249c9e066 -size 8358001 diff --git a/elfutils-0.170.tar.bz2.sig b/elfutils-0.170.tar.bz2.sig deleted file mode 100644 index 9421445..0000000 Binary files a/elfutils-0.170.tar.bz2.sig and /dev/null differ diff --git a/elfutils-0.171.tar.bz2 b/elfutils-0.171.tar.bz2 new file mode 100644 index 0000000..35c6978 --- /dev/null +++ b/elfutils-0.171.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cce883ecffe5d0a3bb19dc23645af74c6f1166727ee6bec3cee741ffd938f066 +size 8654558 diff --git a/elfutils-0.171.tar.bz2.sig b/elfutils-0.171.tar.bz2.sig new file mode 100644 index 0000000..ad55e7f Binary files /dev/null and b/elfutils-0.171.tar.bz2.sig differ diff --git a/elfutils.changes b/elfutils.changes index 04dc226..e46ae30 100644 --- a/elfutils.changes +++ b/elfutils.changes @@ -1,3 +1,48 @@ +------------------------------------------------------------------- +Mon Jun 4 07:19:12 UTC 2018 - mliska@suse.cz + +- Update to version 0.171 + + DWARF5 and split dwarf, including GNU DebugFission, are supported now. + Data can be read from the new DWARF sections .debug_addr, .debug_line_str, + .debug_loclists, .debug_str_offsets and .debug_rnglists. Plus the new + DWARF5 and GNU DebugFission encodings of the existing .debug sections. + Also in split DWARF .dwo (DWARF object) files. This support is mostly + handled by existing functions (dwarf_getlocation*, dwarf_getsrclines, + dwarf_ranges, dwarf_form*, etc.) now returning the data from the new + sections and data formats. But some new functions have been added + to more easily get information about skeleton and split compile units + (dwarf_get_units and dwarf_cu_info), handle new attribute data + (dwarf_getabbrevattr_data) and to keep references to Dwarf_Dies + that might come from different sections or files (dwarf_die_addr_die). + + Not yet supported are .dwp (Dwarf Package) and .sup (Dwarf Supplementary) + files, the .debug_names index, the .debug_cu_index and .debug_tu_index + sections. Only a single .debug_info (and .debug_types) section are + currently handled. + + readelf: Handle all new DWARF5 sections. + --debug-dump=info+ will show split unit DIEs when found. + --dwarf-skeleton can be used when inspecting a .dwo file. + Recognizes GNU locviews with --debug-dump=loc. + + libdw: New functions dwarf_die_addr_die, dwarf_get_units, + dwarf_getabbrevattr_data and dwarf_cu_info. + libdw will now try to resolve the alt file on first use of + an alt attribute FORM when not set yet with dwarf_set_alt. + dwarf_aggregate_size() now works with multi-dimensional arrays. + + libdwfl: Use process_vm_readv when available instead of ptrace. + + backends: Add a RISC-V backend. + + There were various improvements to build on Windows. + The sha1 and md5 implementations have been removed, they weren't used. + +- Remove patches: elfutils-0.170-Wpackednotaligned.patch, + elfutils-0.170-stripnothing.patch, gcc8-disable-test.patch +- make package with V=1 to print verbose command line + ------------------------------------------------------------------- Tue May 29 08:03:20 UTC 2018 - mliska@suse.cz diff --git a/elfutils.spec b/elfutils.spec index 131231b..e4aa46b 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -17,7 +17,7 @@ Name: elfutils -Version: 0.170 +Version: 0.171 Release: 0 Summary: Higher-level library to access ELF files License: SUSE-GPL-2.0-with-OSI-exception @@ -31,11 +31,6 @@ Source1: README-BEFORE-ADDING-PATCHES Source2: baselibs.conf Source3: %{name}.changes Patch1: disable-tests-with-ptrace.patch -# Upstream ab6b37ac, fix build with GCC8 -Patch2: elfutils-0.170-Wpackednotaligned.patch -# Upstream 8f01400a, Robustify strip-nothing test -Patch3: elfutils-0.170-stripnothing.patch -Patch4: gcc8-disable-test.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake @@ -140,9 +135,6 @@ applications that require libdw. # qemu does not support ptrace %patch1 -p1 %endif -%patch2 -p1 -%patch3 -p1 -%patch4 %build # Change DATE/TIME macros to use last change time of elfutils.changes @@ -163,7 +155,7 @@ CFLAGS+=" -fPIC" %endif autoreconf -fi %configure --program-prefix=eu- -make %{?_smp_mflags} +make %{?_smp_mflags} V=1 %install make DESTDIR=$RPM_BUILD_ROOT install @@ -185,7 +177,7 @@ ls -lR $RPM_BUILD_ROOT%{_libdir}/libelf* %postun -n libdw1 -p /sbin/ldconfig %check -make check +make check V=1 %files %defattr(-,root,root) diff --git a/gcc8-disable-test.patch b/gcc8-disable-test.patch deleted file mode 100644 index 49a1103..0000000 --- a/gcc8-disable-test.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- tests/Makefile.am.b 2018-05-29 07:58:20.577499320 +0000 -+++ tests/Makefile.am 2018-05-29 07:59:00.634379043 +0000 -@@ -91,7 +91,7 @@ - run-ranlib-test2.sh run-ranlib-test3.sh run-ranlib-test4.sh \ - run-addrscopes.sh run-strings-test.sh run-funcscopes.sh \ - run-find-prologues.sh run-allregs.sh run-addrcfi.sh \ -- run-nm-self.sh run-readelf-self.sh \ -+ run-nm-self.sh \ - run-readelf-test1.sh run-readelf-test2.sh run-readelf-test3.sh \ - run-readelf-test4.sh run-readelf-twofiles.sh \ - run-readelf-macro.sh run-readelf-loc.sh \ -@@ -188,7 +188,7 @@ - run-elflint-self.sh run-ranlib-test.sh run-ranlib-test2.sh \ - run-ranlib-test3.sh run-ranlib-test4.sh \ - run-addrscopes.sh run-strings-test.sh run-funcscopes.sh \ -- run-nm-self.sh run-readelf-self.sh run-addrcfi.sh \ -+ run-nm-self.sh run-addrcfi.sh \ - run-find-prologues.sh run-allregs.sh run-native-test.sh \ - run-addrname-test.sh run-dwfl-bug-offline-rel.sh \ - run-dwfl-addr-sect.sh run-early-offscn.sh \