elfutils: upgrade 0.195 -> 0.196
PATCH 1/1 elfutils: upgrade 0.195 -> 0.196
Source: NEWS
Version 0.196 "Split Personality"
debuginfod: The $DEBUGINFOD_TIMEOUT environment variable is now enforced
when establishing a connection to a server.
libdw: New functions dwarf_begin_type, dwarf_begin_elf_type and
dwarf_get_type plus new enum Dwarf_Type. Used to select between plain DWARF, split DWARF (.dwo/.dwp) and GNU LTO when opening a file.
Added support for DWARF5 supplementary files (.debug_sup) and associated DW_FORM_ref_sup4/8 and DW_FORM_strp_sup forms.
Added support for split DWARF debug data when contained in the same file as the skeleton.
libdwelf: New functions dwelf_dwarf_debug_sup and dwelf_dwarf_debug_dwp
for querying .debug_sup and .debug_dwp section data.
libdwfl: Now correctly handles Linux kernel module sections that are
not present in sysfs.
libdwfl_stacktrace: New functions dwflst_arch_from_uname,
dwflst_arch_expected_frame_nregs, dwflst_arch_sp_dwarf_reg and dwflst_arch_sp_perf_reg providing per-architecture constants. The libdwfl_stacktrace interface is experimental and may be subject to API/ABI changes.
stackprof: New profiling tool for collecting systemwide stacktrace
profiles. Replaces the eu-stacktrace tool. Requires a C++20 capable compiler.
stacktrace: This experimental tool has been removed and replaced with
eu-stackprof.
srcfiles: Now handles CU names and files from split DWARF.
strip: Fixed bug where a section's sh_link or sh_info reference could
be missing from the debug file.
version.h: New macro _ELFUTILS_THREAD_SAFE added to <elfutils/version.h>.
Defined to 1 when the elfutils libraries are built with thread safety support enabled. Otherwise it is left undefined. Thread safety support is experimental and is not yet officially supported.
Dropped patches:
0001-libelf-Add-libeu-objects-to-libelf.a-static-archive.patch
Backported in b4bd2a2bf6 for 0.192 from upstream commit [1]. A later upstream commit [2] replaced the $(AR) t approach with a libeu.manifest file. Both [1] and [2] landed in upstream 0.193, making the backport redundant since 0.193. Verified libelf.a contains eu-search.o after build without the patch.
[1] https://sourceware.org/git/?p=elfutils.git;a=commit;h=f5d6e088f84dd05278c4698a21cbf1ff4569978d
[2] https://sourceware.org/git/?p=elfutils.git;a=commit;h=4eff110a60cb9c7b77884c61f5925fe844c52acb
Refreshed patches:
0003-musl-utils.patch
---
.../{elfutils_0.195.bb => elfutils_0.196.bb} | 3 +-
...001-config-eu.am-do-not-force-Werror.patch | 4 +--
...u-objects-to-libelf.a-static-archive.patch | 35 -------------------
...-check-data_list.data.d.d_buf-before.patch | 2 +-
...-skip-the-test-when-gcc-not-deployed.patch | 2 +-
...m-compile-test_nlist-with-standard-C.patch | 6 ++--
...cvt_gunhash-if-dest-and-src-are-same.patch | 2 +-
.../elfutils/files/0003-fixheadercheck.patch | 2 +-
.../elfutils/files/0003-musl-utils.patch | 12 +++----
.../elfutils/files/ptest.patch | 8 ++---
10 files changed, 20 insertions(+), 56 deletions(-)
rename meta/recipes-devtools/elfutils/{elfutils_0.195.bb => elfutils_0.196.bb} (98%)
delete mode 100644 meta/recipes-devtools/elfutils/files/0001-libelf-Add-libeu-objects-to-libelf.a-static-archive.patchmeta/recipes-devtools/elfutils/elfutils_0.196.bb renamed from meta/recipes-devtools/elfutils/elfutils_0.195.bb +1 -2
@@ -19,12 +19,11 @@ SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \ file://ptest.patch \ file://0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch \ file://0001-config-eu.am-do-not-force-Werror.patch \ - file://0001-libelf-Add-libeu-objects-to-libelf.a-static-archive.patch \ " SRC_URI:append:libc-musl = " \ file://0003-musl-utils.patch \ " -SRC_URI[sha256sum] = "37629fdf7f1f3dc2818e138fca2b8094177d6c2d0f701d3bb650a561218dc026" +SRC_URI[sha256sum] = "fd5cc6b77ad6773cac93cb3f415f9318ac3b3455eecf801f6b4a742c4f6c7209" inherit autotools gettext ptest pkgconfig
meta/recipes-devtools/elfutils/files/0001-config-eu.am-do-not-force-Werror.patch +2 -2
@@ -1,4 +1,4 @@ -From 5a82f181583e02e19ed739a195801032532474bf Mon Sep 17 00:00:00 2001 +From 975357f7585076a072f61684db20180ef8dd31b7 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin <[email protected]> Date: Fri, 22 Nov 2024 12:50:48 +0100 Subject: [PATCH] config/eu.am: do not force -Werror
@@ -13,7 +13,7 @@ Signed-off-by: Alexander Kanavin <[email protected]> 1 file changed, 2 deletions(-) diff --git a/config/eu.am b/config/eu.am -index 321591f..a1748a8 100644 +index 4ea7251..2b688b3 100644 --- a/config/eu.am +++ b/config/eu.am @@ -135,7 +135,6 @@ AM_CFLAGS = -Wall -Wshadow -Wformat=2 \
meta/recipes-devtools/elfutils/files/0001-libelf-Add-libeu-objects-to-libelf.a-static-archive.patch deleted +0 -35
@@ -1,35 +0,0 @@ -From ad94a59ebcc32f71853716aff650997076d112df Mon Sep 17 00:00:00 2001 -From: Mark Wielaard <[email protected]> -Date: Tue, 22 Oct 2024 15:03:42 +0200 -Subject: [PATCH] libelf: Add libeu objects to libelf.a static archive - -libelf might use some symbols from libeu.a, specifically the eu-search -wrappers. But we don't ship libeu.a separately. So include the libeu -objects in the libelf.a archive to facilitate static linking. - - * libelf/Makefile.am (libeu_objects): New variable. - (libelf_a_LIBADD): New, add libeu_objects. - -https://sourceware.org/bugzilla/show_bug.cgi?id=32293 - -Signed-off-by: Mark Wielaard <[email protected]> -Signed-off-by: Martin Jansa <[email protected]> -Upstream-Status: Backport [https://sourceware.org/git/?p=elfutils.git;a=commit;h=f5d6e088f84dd05278c4698a21cbf1ff4569978d] ---- - libelf/Makefile.am | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/libelf/Makefile.am b/libelf/Makefile.am -index cc539c8..156a486 100644 ---- a/libelf/Makefile.am -+++ b/libelf/Makefile.am -@@ -126,6 +126,9 @@ libelf.so: $(srcdir)/libelf.map $(libelf_so_LIBS) $(libelf_so_DEPS) - libeu_objects = $(shell cat ../lib/libeu.manifest) - libelf_a_LIBADD = $(addprefix ../lib/,$(libeu_objects)) - -+libeu_objects = $(shell $(AR) t ../lib/libeu.a) -+libelf_a_LIBADD = $(addprefix ../lib/,$(libeu_objects)) -+ - install: install-am libelf.so - $(mkinstalldirs) $(DESTDIR)$(libdir) - $(INSTALL_PROGRAM) libelf.so $(DESTDIR)$(libdir)/libelf-$(PACKAGE_VERSION).so
meta/recipes-devtools/elfutils/files/0001-libelf-elf_end.c-check-data_list.data.d.d_buf-before.patch +1 -1
@@ -1,4 +1,4 @@ -From 6b339ad9f9084b653b0d0c3823c871a7a9774b63 Mon Sep 17 00:00:00 2001 +From bf22ef3c1a559dc0b265a9c7c2fcda4a20519e63 Mon Sep 17 00:00:00 2001 From: Robert Yang <[email protected]> Date: Thu, 16 Aug 2018 09:58:26 +0800 Subject: [PATCH] libelf/elf_end.c: check data_list.data.d.d_buf before free it
meta/recipes-devtools/elfutils/files/0001-skip-the-test-when-gcc-not-deployed.patch +1 -1
@@ -1,4 +1,4 @@ -From 168f8b6e37a762a6263c279d95fee9346e1f44ca Mon Sep 17 00:00:00 2001 +From db59c8a80a285f9cba3f789b6c2c240481b97db8 Mon Sep 17 00:00:00 2001 From: Mingli Yu <[email protected]> Date: Tue, 21 May 2019 15:20:34 +0800 Subject: [PATCH] skip the test when gcc not deployed
meta/recipes-devtools/elfutils/files/0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch +3 -3
@@ -1,4 +1,4 @@ -From 7355ed2e9d0e1f38ab87f115011ab498388b4a41 Mon Sep 17 00:00:00 2001 +From aba735bf19c60ff85731b3bfe79a6c83e17f3436 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin <[email protected]> Date: Tue, 23 Jun 2020 07:49:35 +0000 Subject: [PATCH] tests/Makefile.am: compile test_nlist with standard CFLAGS
@@ -13,10 +13,10 @@ Signed-off-by: Alexander Kanavin <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Makefile.am b/tests/Makefile.am -index 946c7d2e..32590f6 100644 +index 055fea7..ba25e61 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am -@@ -118,7 +118,7 @@ endif +@@ -122,7 +122,7 @@ endif test-nlist$(EXEEXT): test-nlist.c $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) \
meta/recipes-devtools/elfutils/files/0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch +1 -1
@@ -1,4 +1,4 @@ -From ad1bf27f823db8a48e1e64ecce2e6998e990dc41 Mon Sep 17 00:00:00 2001 +From 0533b0d67ed99fd2a034e497f0c07ff608ca52e7 Mon Sep 17 00:00:00 2001 From: Hongxu Jia <[email protected]> Date: Tue, 15 Aug 2017 17:13:59 +0800 Subject: [PATCH] Fix elf_cvt_gunhash if dest and src are same.
meta/recipes-devtools/elfutils/files/0003-fixheadercheck.patch +1 -1
@@ -1,4 +1,4 @@ -From 7b48ae456de3e2f2a94f91c800b238788d5fd277 Mon Sep 17 00:00:00 2001 +From 78415c6fc1f464e45222ba588a6cdc0292b4230a Mon Sep 17 00:00:00 2001 From: Hongxu Jia <[email protected]> Date: Tue, 15 Aug 2017 17:17:20 +0800 Subject: [PATCH] fixheadercheck
meta/recipes-devtools/elfutils/files/0003-musl-utils.patch +6 -6
@@ -1,4 +1,4 @@ -From efa2836719b669c3200a615898627f6b6a4dd570 Mon Sep 17 00:00:00 2001 +From 0064679018642a9e0e2c9d36eeeedc3a8278356e Mon Sep 17 00:00:00 2001 From: Hongxu Jia <[email protected]> Date: Fri, 23 Aug 2019 10:19:48 +0800 Subject: [PATCH] musl-utils
@@ -38,12 +38,12 @@ index d4a4221..f6336d9 100644 /* State of -D/-U flags. */ extern bool arlib_deterministic_output; diff --git a/src/elfcompress.c b/src/elfcompress.c -index f771b92..263de62 100644 +index 7818cce..ed3654b 100644 --- a/src/elfcompress.c +++ b/src/elfcompress.c -@@ -37,6 +37,13 @@ - #include "libeu.h" - #include "printversion.h" +@@ -41,6 +41,13 @@ + /* Really should come from libgen.h, but we poisoned basename in system.h. */ + extern char *dirname(char *path); +#if !defined(ALLPERMS) +# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) /* 07777 */
@@ -56,7 +56,7 @@ index f771b92..263de62 100644 ARGP_PROGRAM_VERSION_HOOK_DEF = print_version; diff --git a/src/strip.c b/src/strip.c -index 20cc8a2..2ce52e8 100644 +index a8ecc80..bf88051 100644 --- a/src/strip.c +++ b/src/strip.c @@ -45,6 +45,13 @@
meta/recipes-devtools/elfutils/files/ptest.patch +4 -4
@@ -1,4 +1,4 @@ -From eeafa586990429f440eb2dbd9b4231edff6ae904 Mon Sep 17 00:00:00 2001 +From abe164f6242825e827b6b13141883591d059d6fe Mon Sep 17 00:00:00 2001 From: Richard Purdie <[email protected]> Date: Wed, 1 May 2019 16:37:48 +0100 Subject: [PATCH] Changes to allow ptest to run standalone on target:
@@ -21,7 +21,7 @@ Upstream-Status: Inappropriate [oe specific] 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac -index 80c7fd8..3e31485 100644 +index b0d1b48..acc29f0 100644 --- a/configure.ac +++ b/configure.ac @@ -43,7 +43,7 @@ AC_COPYRIGHT([Copyright (C) 1996-2026 The elfutils developers.])
@@ -34,10 +34,10 @@ index 80c7fd8..3e31485 100644 AM_SILENT_RULES([yes]) diff --git a/tests/Makefile.am b/tests/Makefile.am -index 9a00541..946c7d2e 100644 +index 137e961..055fea7 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am -@@ -943,3 +943,5 @@ check: check-am coverage +@@ -981,3 +981,5 @@ check: check-am coverage coverage: -$(srcdir)/coverage.sh endif
Quoted 57 lines · Jaipaul Cheernam
Source: NEWS
Version 0.196 "Split Personality"
debuginfod: The $DEBUGINFOD_TIMEOUT environment variable is now enforced
when establishing a connection to a server.libdw: New functions
dwarf_begin_type,dwarf_begin_elf_typeand
dwarf_get_typeplus new enumDwarf_Type. Used to select between plain DWARF, split DWARF (.dwo/.dwp) and GNU LTO when opening a file.Added support for DWARF5 supplementary files (.debug_sup) and associated DW_FORM_ref_sup4/8 and
DW_FORM_strp_supforms.Added support for split DWARF debug data when contained in the same file as the skeleton.
libdwelf: New functions
dwelf_dwarf_debug_supanddwelf_dwarf_debug_dwp
for querying .debug_sup and .debug_dwp section data.libdwfl: Now correctly handles Linux kernel module sections that are
not present in sysfs.
libdwfl_stacktrace: New functionsdwflst_arch_from_uname,
dwflst_arch_expected_frame_nregs,dwflst_arch_sp_dwarf_reganddwflst_arch_sp_perf_regproviding per-architecture constants. Thelibdwfl_stacktraceinterface is experimental and may be subject to API/ABI changes.stackprof: New profiling tool for collecting systemwide stacktrace
profiles. Replaces the eu-stacktrace tool. Requires a C++20 capable compiler.stacktrace: This experimental tool has been removed and replaced with
eu-stackprof.srcfiles: Now handles CU names and files from split DWARF.
strip: Fixed bug where a section's
sh_linkorsh_inforeference could
be missing from the debug file.
version.h: New macro_ELFUTILS_THREAD_SAFEadded to <elfutils/version.h>.
Defined to 1 when the elfutils libraries are built with thread safety support enabled. Otherwise it is left undefined. Thread safety support is experimental and is not yet officially supported.Dropped patches:
0001-libelf-Add-libeu-objects-to-libelf.a-static-archive.patch
Backported inb4bd2a2bf6for 0.192 from upstream commit [1]. A later upstream commit [2] replaced the $(AR) t approach with a libeu.manifest file. Both [1] and [2] landed in upstream 0.193, making the backport redundant since 0.193. Verified libelf.a contains eu-search.o after build without the patch.
Quoted 8 lines
[1] https://sourceware.org/git/?p=elfutils.git;a=commit;h=f5d6e088f84dd05278c4698a21cbf1ff4569978d
[2] https://sourceware.org/git/?p=elfutils.git;a=commit;h=4eff110a60cb9c7b77884c61f5925fe844c52acbRefreshed patches:
0003-musl-utils.patchSigned-off-by Jaipaul Cheernam <[email protected]>---
Hi Jaipaul,
Thanks for your patch.
It looks like this is breaking ptests:
Failed ptests:
{'elfutils': 'START: ptest-runner\n'
'2026-08-18T20:10\n'
'make \\\n'
'\tTESTS_ENVIRONMENT="libdir=\'/usr/lib\'; bindir=\'/usr/bin\'; '
"LC_ALL=C; LANG=C; VALGRIND_CMD=''; "
"abs_srcdir='/usr/lib/elfutils/ptest/tests'; "
"abs_builddir='/usr/lib/elfutils/ptest/tests'; "
"abs_top_builddir='/usr/lib/elfutils/ptest/tests/../'; export "
'abs_srcdir; export abs_builddir; export abs_top_builddir; export '
'libdir; export bindir; export LC_ALL; export LANG; export '
'VALGRIND_CMD; unset DEBUGINFOD_URLS; '
"NM='riscv64-poky-linux-gcc-nm'; export NM; CC='gcc'; export "
'CC;" \\\n'
'\tLOG_COMPILER="/usr/lib/elfutils/ptest/tests/test-wrapper.sh '
'installed no \'s,^,eu-,\'" check-TESTS\n'
"make[1]: Entering directory '/usr/lib/elfutils/ptest/tests'\n"
"make[1]: *** No rule to make target '../libdw/libdw.a', needed "
"by 'elf-from-memory'.\n"
"make[1]: Target 'check-TESTS' not remade because of errors.\n"
"make[1]: Leaving directory '/usr/lib/elfutils/ptest/tests'\n"
'make: *** [Makefile:3473: installcheck-local] Error 2\n'
'\n'
'ERROR: Exit status is 2\n'
'DURATION: 1\n'}https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/2197
https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/4329
https://autobuilder.yoctoproject.org/valkyrie/#/builders/109/builds/1002
https://autobuilder.yoctoproject.org/valkyrie/#/builders/110/builds/983
Also, I've seen a build failure of elfutils itself, on qemuarm64 platform. A rebuild is in progress to see if it happens again:
ERROR: elfutils-native-0.196-r0 do_compile: Execution of '/srv/pokybuild/yocto-worker/qemuarm64-ptest/build/build/tmp/work/aarch64-linux/elfutils-native/0.196/temp/run.do_compile.861918' failed with exit code 1
...
| gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/srv/pokybuild/yocto-worker/qemuarm64-ptest/build/build/tmp/work/aarch64-linux/elfutils-native/0.196/recipe-sysroot-native/usr/share/locale"' -I. -I../../sources/elfutils-0.196/backends -I.. -iquote. -iquote../../sources/elfutils-0.196/backends -I../../sources/elfutils-0.196/lib -I/srv/pokybuild/yocto-worker/qemuarm64-ptest/build/build/tmp/work/aarch64-linux/elfutils-native/0.196/build -I../../sources/elfutils-0.196/libebl -I../../sources/elfutils-0.196/libasm -I../../sources/elfutils-0.196/libelf -I../../sources/elfutils-0.196/libdw -isystem/srv/pokybuild/yocto-worker/qemuarm64-ptest/build/build/tmp/work/aarch64-linux/elfutils-native/0.196/recipe-sysroot-native/usr/include -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5 -Wuse-after-free=3 -Wunused -Wextra -Wstack-usage=262144 -D_FORTIFY_SOURCE=3 -isystem/srv/pokybuild/yocto-worker/qemuarm64-ptest/build/build/tmp/work/aarch64-linux/elfutils-native/0.196/recipe-sysroot-native/usr/include -O2 -pipe -c -o sparc_initreg.o ../../sources/elfutils-0.196/backends/sparc_initreg.c | In file included from ../../sources/elfutils-0.196/backends/aarch64_initreg.c:36: | /usr/include/linux/uio.h:17:8: error: redefinition of ‘struct iovec’ | 17 | struct iovec | | ^~~~~ | In file included from /usr/include/aarch64-linux-gnu/bits/fcntl-linux.h:38, | from /usr/include/aarch64-linux-gnu/bits/fcntl.h:61, | from /usr/include/fcntl.h:35, | from ../../sources/elfutils-0.196/lib/system.h:42, | from ../../sources/elfutils-0.196/backends/aarch64_initreg.c:33: | /usr/include/aarch64-linux-gnu/bits/types/struct_iovec.h:26:8: note: originally defined here | 26 | struct iovec | | ^~~~~
https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/4312
rebuild: https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/4314
Can you have a look at the issue?
Thanks,
Mathieu
Signature · 3 lines
Mathieu Dubois-Briand, Bootlin Embedded Linux and Kernel engineering https://bootlin.com