summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/elfutils
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-11-20 14:31:06 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-11-22 12:26:46 +0000
commit43d68bd00f94d492fd00964b95a657515088d1de (patch)
tree653b73bc433a76126cacaecd2353e02ad07c304d /meta/recipes-devtools/elfutils
parent8c5b1122554451290410df36e61ee3811c70e841 (diff)
downloadpoky-43d68bd00f94d492fd00964b95a657515088d1de.tar.gz
elfutils: update 0.187 -> 0.188
Drop upstreamed patch. (From OE-Core rev: bd6a55512db6b9c50a8d86eab7a4727e800d5391) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/elfutils')
-rw-r--r--meta/recipes-devtools/elfutils/elfutils_0.188.bb (renamed from meta/recipes-devtools/elfutils/elfutils_0.187.bb)5
-rw-r--r--meta/recipes-devtools/elfutils/files/0001-tests-Add-libeu-to-tests-needing-error-API.patch147
-rw-r--r--meta/recipes-devtools/elfutils/files/0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch8
3 files changed, 6 insertions, 154 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.187.bb b/meta/recipes-devtools/elfutils/elfutils_0.188.bb
index 40c51c8814..43f5b2e56c 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.187.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.188.bb
@@ -11,6 +11,7 @@ DEPENDS:append:libc-musl = " argp-standalone fts musl-obstack "
11# The Debian patches below are from: 11# The Debian patches below are from:
12# http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.176-1.debian.tar.xz 12# http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.176-1.debian.tar.xz
13SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \ 13SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \
14 file://run-ptest \
14 file://0001-dso-link-change.patch \ 15 file://0001-dso-link-change.patch \
15 file://0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch \ 16 file://0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch \
16 file://0003-fixheadercheck.patch \ 17 file://0003-fixheadercheck.patch \
@@ -18,16 +19,14 @@ SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \
18 file://0001-libasm-may-link-with-libbz2-if-found.patch \ 19 file://0001-libasm-may-link-with-libbz2-if-found.patch \
19 file://0001-libelf-elf_end.c-check-data_list.data.d.d_buf-before.patch \ 20 file://0001-libelf-elf_end.c-check-data_list.data.d.d_buf-before.patch \
20 file://0001-skip-the-test-when-gcc-not-deployed.patch \ 21 file://0001-skip-the-test-when-gcc-not-deployed.patch \
21 file://run-ptest \
22 file://ptest.patch \ 22 file://ptest.patch \
23 file://0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch \ 23 file://0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch \
24 file://0001-tests-Add-libeu-to-tests-needing-error-API.patch \
25 " 24 "
26SRC_URI:append:libc-musl = " \ 25SRC_URI:append:libc-musl = " \
27 file://0003-musl-utils.patch \ 26 file://0003-musl-utils.patch \
28 file://0015-config-eu.am-do-not-use-Werror.patch \ 27 file://0015-config-eu.am-do-not-use-Werror.patch \
29 " 28 "
30SRC_URI[sha256sum] = "e70b0dfbe610f90c4d1fe0d71af142a4e25c3c4ef9ebab8d2d72b65159d454c8" 29SRC_URI[sha256sum] = "fb8b0e8d0802005b9a309c60c1d8de32dd2951b56f0c3a3cb56d21ce01595dff"
31 30
32inherit autotools gettext ptest pkgconfig 31inherit autotools gettext ptest pkgconfig
33 32
diff --git a/meta/recipes-devtools/elfutils/files/0001-tests-Add-libeu-to-tests-needing-error-API.patch b/meta/recipes-devtools/elfutils/files/0001-tests-Add-libeu-to-tests-needing-error-API.patch
deleted file mode 100644
index 7c1bc87cbf..0000000000
--- a/meta/recipes-devtools/elfutils/files/0001-tests-Add-libeu-to-tests-needing-error-API.patch
+++ /dev/null
@@ -1,147 +0,0 @@
1From c05c787070a390a2061bfcb845e1e35e8b1373b3 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 13 Sep 2022 09:33:00 -0700
4Subject: [PATCH] tests: Add libeu to tests needing error() API
5
6A local error() impelmentation is used when libc does not provide it,
7therefore link in libeu.a which contains this function in tests needing
8error() API
9
10Upstream-Status: Submitted [https://sourceware.org/pipermail/elfutils-devel/2022q3/005375.html]
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 tests/Makefile.am | 60 +++++++++++++++++++++++------------------------
14 1 file changed, 30 insertions(+), 30 deletions(-)
15
16diff --git a/tests/Makefile.am b/tests/Makefile.am
17index 3943e17..1acc49b 100644
18--- a/tests/Makefile.am
19+++ b/tests/Makefile.am
20@@ -638,17 +638,17 @@ libeu = ../lib/libeu.a
21 arextract_LDADD = $(libelf)
22 arsymtest_LDADD = $(libelf)
23 newfile_LDADD = $(libelf)
24-saridx_LDADD = $(libelf)
25+saridx_LDADD = $(libeu) $(libelf)
26 scnnames_LDADD = $(libelf)
27-sectiondump_LDADD = $(libelf)
28+sectiondump_LDADD = $(libeu) $(libelf)
29 showptable_LDADD = $(libelf)
30 hash_LDADD = $(libelf)
31 test_nlist_CFLAGS =-g -O0 $(EXTRA_NLIST_CFLAGS)
32 test_nlist_LDADD = $(libelf)
33 msg_tst_LDADD = $(libelf)
34 newscn_LDADD = $(libelf)
35-early_offscn_LDADD = $(libelf)
36-ecp_LDADD = $(libelf)
37+early_offscn_LDADD = $(libeu) $(libelf)
38+ecp_LDADD = $(libeu) $(libelf)
39 update1_LDADD = $(libelf)
40 update2_LDADD = $(libelf)
41 update3_LDADD = $(libdw) $(libelf)
42@@ -662,12 +662,12 @@ get_files_LDADD = $(libdw) $(libelf)
43 next_files_LDADD = $(libdw) $(libelf)
44 get_aranges_LDADD = $(libdw) $(libelf)
45 allfcts_LDADD = $(libdw) $(libelf)
46-line2addr_LDADD = $(libdw) $(argp_LDADD)
47-addrscopes_LDADD = $(libdw) $(argp_LDADD)
48-funcscopes_LDADD = $(libdw) $(argp_LDADD)
49-funcretval_LDADD = $(libdw) $(argp_LDADD)
50-allregs_LDADD = $(libdw) $(argp_LDADD)
51-find_prologues_LDADD = $(libdw) $(argp_LDADD)
52+line2addr_LDADD = $(libeu) $(libdw) $(argp_LDADD)
53+addrscopes_LDADD = $(libeu) $(libdw) $(argp_LDADD)
54+funcscopes_LDADD = $(libeu) $(libdw) $(argp_LDADD)
55+funcretval_LDADD = $(libeu) $(libdw) $(argp_LDADD)
56+allregs_LDADD = $(libeu) $(libdw) $(argp_LDADD)
57+find_prologues_LDADD = $(libeu) $(libdw) $(argp_LDADD)
58 #show_ciefde_LDADD = ../libdwarf/libdwarf.so $(libelf)
59 asm_tst1_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
60 asm_tst2_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
61@@ -678,19 +678,19 @@ asm_tst6_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
62 asm_tst7_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
63 asm_tst8_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
64 asm_tst9_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
65-dwflmodtest_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD)
66-rdwrmmap_LDADD = $(libelf)
67+dwflmodtest_LDADD = $(libeu) $(libdw) $(libebl) $(libelf) $(argp_LDADD)
68+rdwrmmap_LDADD = $(libeu) $(libelf)
69 dwfl_bug_addr_overflow_LDADD = $(libdw) $(libebl) $(libelf)
70 arls_LDADD = $(libelf)
71-dwfl_bug_fd_leak_LDADD = $(libdw) $(libebl) $(libelf)
72+dwfl_bug_fd_leak_LDADD = $(libeu) $(libdw) $(libebl) $(libelf)
73 dwfl_bug_report_LDADD = $(libdw) $(libebl) $(libelf)
74-dwfl_bug_getmodules_LDADD = $(libdw) $(libebl) $(libelf)
75-dwfl_addr_sect_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD)
76+dwfl_bug_getmodules_LDADD = $(libeu) $(libdw) $(libebl) $(libelf)
77+dwfl_addr_sect_LDADD = $(libeu) $(libdw) $(libebl) $(libelf) $(argp_LDADD)
78 dwarf_getmacros_LDADD = $(libdw)
79 dwarf_ranges_LDADD = $(libdw)
80 dwarf_getstring_LDADD = $(libdw)
81 addrcfi_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD)
82-dwarfcfi_LDADD = $(libdw) $(libelf)
83+dwarfcfi_LDADD = $(libeu) $(libdw) $(libelf)
84 test_flag_nobits_LDADD = $(libelf)
85 rerequest_tag_LDADD = $(libdw)
86 alldts_LDADD = $(libdw) $(libelf)
87@@ -699,35 +699,35 @@ typeiter2_LDADD = $(libdw) $(libelf)
88 low_high_pc_LDADD = $(libdw) $(libelf) $(argp_LDADD)
89 test_elf_cntl_gelf_getshdr_LDADD = $(libelf)
90 dwflsyms_LDADD = $(libdw) $(libelf) $(argp_LDADD)
91-dwfllines_LDADD = $(libdw) $(libelf) $(argp_LDADD)
92-dwfl_report_elf_align_LDADD = $(libdw)
93+dwfllines_LDADD = $(libeu) $(libdw) $(libelf) $(argp_LDADD)
94+dwfl_report_elf_align_LDADD = $(libeu) $(libdw)
95 dwfl_report_segment_contiguous_LDADD = $(libdw) $(libebl) $(libelf)
96-varlocs_LDADD = $(libdw) $(libelf) $(argp_LDADD)
97-backtrace_LDADD = $(libdw) $(libelf) $(argp_LDADD)
98+varlocs_LDADD = $(libeu) $(libdw) $(libelf) $(argp_LDADD)
99+backtrace_LDADD = $(libeu) $(libdw) $(libelf) $(argp_LDADD)
100 # backtrace-child-biarch also uses those *_CFLAGS and *_LDLAGS variables:
101 backtrace_child_CFLAGS = $(fpie_CFLAGS)
102 backtrace_child_LDFLAGS = -pie -pthread
103 backtrace_child_biarch_SOURCES = backtrace-child.c
104-backtrace_data_LDADD = $(libdw) $(libelf)
105+backtrace_data_LDADD = $(libeu) $(libdw) $(libelf)
106 backtrace_dwarf_CFLAGS = -Wno-unused-parameter
107-backtrace_dwarf_LDADD = $(libdw) $(libelf)
108-debuglink_LDADD = $(libdw) $(libelf)
109-debugaltlink_LDADD = $(libdw) $(libelf)
110-buildid_LDADD = $(libdw) $(libelf)
111+backtrace_dwarf_LDADD = $(libeu) $(libdw) $(libelf)
112+debuglink_LDADD = $(libeu) $(libdw) $(libelf)
113+debugaltlink_LDADD = $(libeu) $(libdw) $(libelf)
114+buildid_LDADD = $(libeu) $(libdw) $(libelf)
115 deleted_LDADD = ./deleted-lib.so
116 deleted_lib_so_LDFLAGS = -shared
117 deleted_lib_so_CFLAGS = $(fpic_CFLAGS) -fasynchronous-unwind-tables
118 aggregate_size_LDADD = $(libdw) $(libelf) $(argp_LDADD)
119 peel_type_LDADD = $(libdw) $(libelf) $(argp_LDADD)
120-vdsosyms_LDADD = $(libdw) $(libelf)
121-getsrc_die_LDADD = $(libdw) $(libelf)
122+vdsosyms_LDADD = $(libeu) $(libdw) $(libelf)
123+getsrc_die_LDADD = $(libeu) $(libdw) $(libelf)
124 strptr_LDADD = $(libelf)
125 newdata_LDADD = $(libelf)
126 elfstrtab_LDADD = $(libelf)
127-dwfl_proc_attach_LDADD = $(libdw)
128+dwfl_proc_attach_LDADD = $(libeu) $(libdw)
129 dwfl_proc_attach_LDFLAGS = -pthread -rdynamic $(AM_LDFLAGS)
130 elfshphehdr_LDADD =$(libelf)
131-elfstrmerge_LDADD = $(libdw) $(libelf)
132+elfstrmerge_LDADD = $(libeu) $(libdw) $(libelf)
133 dwelfgnucompressed_LDADD = $(libelf) $(libdw)
134 elfgetchdr_LDADD = $(libelf) $(libdw)
135 elfgetzdata_LDADD = $(libelf)
136@@ -743,7 +743,7 @@ get_units_split_LDADD = $(libdw)
137 attr_integrate_skel_LDADD = $(libdw)
138 all_dwarf_ranges_LDADD = $(libdw)
139 unit_info_LDADD = $(libdw)
140-next_cfi_LDADD = $(libelf) $(libdw)
141+next_cfi_LDADD = $(libeu) $(libelf) $(libdw)
142 elfcopy_LDADD = $(libelf)
143 addsections_LDADD = $(libelf)
144 debuginfod_build_id_find_LDADD = $(libelf) $(libdw)
145--
1462.37.3
147
diff --git a/meta/recipes-devtools/elfutils/files/0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch b/meta/recipes-devtools/elfutils/files/0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch
index c494d7f2e5..a2c0b90227 100644
--- a/meta/recipes-devtools/elfutils/files/0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch
+++ b/meta/recipes-devtools/elfutils/files/0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch
@@ -1,4 +1,4 @@
1From 22e0e1c01ec680a2970f4d5ca9e47f90259cbdcf Mon Sep 17 00:00:00 2001 1From e355ca3b8ddcc6e73ee140f53d25634afdaec0da Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Tue, 23 Jun 2020 07:49:35 +0000 3Date: Tue, 23 Jun 2020 07:49:35 +0000
4Subject: [PATCH] tests/Makefile.am: compile test_nlist with standard CFLAGS 4Subject: [PATCH] tests/Makefile.am: compile test_nlist with standard CFLAGS
@@ -14,10 +14,10 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
14 1 file changed, 1 insertion(+), 1 deletion(-) 14 1 file changed, 1 insertion(+), 1 deletion(-)
15 15
16diff --git a/tests/Makefile.am b/tests/Makefile.am 16diff --git a/tests/Makefile.am b/tests/Makefile.am
17index a2dfd43..40a0228 100644 17index 2ade5d9..f85cdba 100644
18--- a/tests/Makefile.am 18--- a/tests/Makefile.am
19+++ b/tests/Makefile.am 19+++ b/tests/Makefile.am
20@@ -90,7 +90,7 @@ endif 20@@ -98,7 +98,7 @@ endif
21 test-nlist$(EXEEXT): test-nlist.c 21 test-nlist$(EXEEXT): test-nlist.c
22 $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 22 $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
23 $(AM_CPPFLAGS) $(CPPFLAGS) \ 23 $(AM_CPPFLAGS) $(CPPFLAGS) \
@@ -25,4 +25,4 @@ index a2dfd43..40a0228 100644
25+ $(CFLAGS) $(GCOV_FLAGS) -o $@ $< $(test_nlist_LDADD) 25+ $(CFLAGS) $(GCOV_FLAGS) -o $@ $< $(test_nlist_LDADD)
26 26
27 TESTS = run-arextract.sh run-arsymtest.sh run-ar.sh newfile test-nlist \ 27 TESTS = run-arextract.sh run-arsymtest.sh run-ar.sh newfile test-nlist \
28 update1 update2 update3 update4 \ 28 run-ar-N.sh \