forked from pool/elfutils
Accepting request 613899 from home:marxin:branches:openSUSE:Factory
- 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 OBS-URL: https://build.opensuse.org/request/show/613899 OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=109
This commit is contained in:
parent
4e99f4b64b
commit
9a41c7f04a
@ -1,43 +0,0 @@
|
||||
commit ab6b37ac32ddf2f2f11f800a770170814f5cbb8b
|
||||
Author: Mark Wielaard <mark@klomp.org>
|
||||
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 <mark@klomp.org>
|
||||
|
||||
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))
|
@ -1,26 +0,0 @@
|
||||
commit 8f0140ace401197beaed1df6a48f259756d8bbd9
|
||||
Author: Dmitry V. Levin <ldv@altlinux.org>
|
||||
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 <ldv@altlinux.org>
|
||||
|
||||
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 ||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1f844775576b79bdc9f9c717a50058d08620323c1e935458223a12f249c9e066
|
||||
size 8358001
|
Binary file not shown.
3
elfutils-0.171.tar.bz2
Normal file
3
elfutils-0.171.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cce883ecffe5d0a3bb19dc23645af74c6f1166727ee6bec3cee741ffd938f066
|
||||
size 8654558
|
BIN
elfutils-0.171.tar.bz2.sig
Normal file
BIN
elfutils-0.171.tar.bz2.sig
Normal file
Binary file not shown.
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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 \
|
Loading…
Reference in New Issue
Block a user