summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/elfutils/files
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-03-04 11:57:12 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-03-04 14:27:06 +0000
commitdfbf7b935c07d3ac53c00446ea7dc86304407e04 (patch)
treeb0780828bd952caf81376826f6d6bbd5a979dc29 /meta/recipes-devtools/elfutils/files
parent76daf150ea6d7c7281892773d20860e496c7002d (diff)
downloadpoky-dfbf7b935c07d3ac53c00446ea7dc86304407e04.tar.gz
elfutils: Refresh patches after upgrade
Use devtool to refresh the patches. This avoids fuzz warnings. (From OE-Core rev: 60031b012ef0de3650628b24db7d3470a34d637b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/elfutils/files')
-rw-r--r--meta/recipes-devtools/elfutils/files/0001-dso-link-change.patch12
-rw-r--r--meta/recipes-devtools/elfutils/files/0001-libasm-may-link-with-libbz2-if-found.patch6
-rw-r--r--meta/recipes-devtools/elfutils/files/0001-libelf-elf_end.c-check-data_list.data.d.d_buf-before.patch6
-rw-r--r--meta/recipes-devtools/elfutils/files/0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch8
-rw-r--r--meta/recipes-devtools/elfutils/files/0003-fixheadercheck.patch8
-rw-r--r--meta/recipes-devtools/elfutils/files/0004-Disable-the-test-to-convert-euc-jp.patch8
-rw-r--r--meta/recipes-devtools/elfutils/files/0006-Fix-build-on-aarch64-musl.patch8
-rw-r--r--meta/recipes-devtools/elfutils/files/0007-Fix-control-path-where-we-have-str-as-uninitialized-.patch9
-rw-r--r--meta/recipes-devtools/elfutils/files/0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch6
-rw-r--r--meta/recipes-devtools/elfutils/files/debian/0001-Ignore-differences-between-mips-machine-identifiers.patch11
-rw-r--r--meta/recipes-devtools/elfutils/files/debian/0002-Add-support-for-mips64-abis-in-mips_retval.c.patch12
-rw-r--r--meta/recipes-devtools/elfutils/files/debian/0003-Add-mips-n64-relocation-format-hack.patch59
-rw-r--r--meta/recipes-devtools/elfutils/files/debian/arm_backend.diff330
-rw-r--r--meta/recipes-devtools/elfutils/files/debian/disable_werror.patch21
-rw-r--r--meta/recipes-devtools/elfutils/files/debian/hppa_backend.diff154
-rw-r--r--meta/recipes-devtools/elfutils/files/debian/hurd_path.patch18
-rw-r--r--meta/recipes-devtools/elfutils/files/debian/ignore_strmerge.diff15
-rw-r--r--meta/recipes-devtools/elfutils/files/debian/kfreebsd_path.patch14
-rw-r--r--meta/recipes-devtools/elfutils/files/debian/mips_backend.diff126
-rw-r--r--meta/recipes-devtools/elfutils/files/debian/mips_readelf_w.patch20
20 files changed, 473 insertions, 378 deletions
diff --git a/meta/recipes-devtools/elfutils/files/0001-dso-link-change.patch b/meta/recipes-devtools/elfutils/files/0001-dso-link-change.patch
index 4c62dc511c..af79ef496d 100644
--- a/meta/recipes-devtools/elfutils/files/0001-dso-link-change.patch
+++ b/meta/recipes-devtools/elfutils/files/0001-dso-link-change.patch
@@ -1,7 +1,7 @@
1From c9c6d2414651dbf163dc4963c3c3d6f5cacef898 Mon Sep 17 00:00:00 2001 1From b99aa12cf879ce200e03d75e543c7ab2dfa5503b Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 15 Aug 2017 17:10:57 +0800 3Date: Tue, 15 Aug 2017 17:10:57 +0800
4Subject: [PATCH 1/7] dso link change 4Subject: [PATCH] dso link change
5 5
6Upstream-Status: Pending 6Upstream-Status: Pending
7 7
@@ -16,6 +16,7 @@ more details.
16Rebase to 0.170 16Rebase to 0.170
17 17
18Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 18Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
19
19--- 20---
20 src/Makefile.am | 2 +- 21 src/Makefile.am | 2 +-
21 tests/Makefile.am | 2 +- 22 tests/Makefile.am | 2 +-
@@ -35,10 +36,10 @@ index 2b1c0dc..9305b84 100644
35 endif 36 endif
36 libebl = ../libebl/libebl.a 37 libebl = ../libebl/libebl.a
37diff --git a/tests/Makefile.am b/tests/Makefile.am 38diff --git a/tests/Makefile.am b/tests/Makefile.am
38index b45ecdc..dd256fb 100644 39index 1b0c7d3..bced19b 100644
39--- a/tests/Makefile.am 40--- a/tests/Makefile.am
40+++ b/tests/Makefile.am 41+++ b/tests/Makefile.am
41@@ -436,7 +436,7 @@ libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) $(libebl) -ldl 42@@ -476,7 +476,7 @@ libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) $(libebl) -ldl
42 libelf = ../libelf/libelf.a -lz 43 libelf = ../libelf/libelf.a -lz
43 libasm = ../libasm/libasm.a 44 libasm = ../libasm/libasm.a
44 else 45 else
@@ -47,6 +48,3 @@ index b45ecdc..dd256fb 100644
47 libelf = ../libelf/libelf.so 48 libelf = ../libelf/libelf.so
48 libasm = ../libasm/libasm.so 49 libasm = ../libasm/libasm.so
49 endif 50 endif
50--
512.7.4
52
diff --git a/meta/recipes-devtools/elfutils/files/0001-libasm-may-link-with-libbz2-if-found.patch b/meta/recipes-devtools/elfutils/files/0001-libasm-may-link-with-libbz2-if-found.patch
index c342053aac..0d533c8f10 100644
--- a/meta/recipes-devtools/elfutils/files/0001-libasm-may-link-with-libbz2-if-found.patch
+++ b/meta/recipes-devtools/elfutils/files/0001-libasm-may-link-with-libbz2-if-found.patch
@@ -1,4 +1,4 @@
1From 74629016e76343a4bf39915c9192b6bf26a57c2d Mon Sep 17 00:00:00 2001 1From d7be687c35fa42954874034c82ca9059d28196fe Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 4 Oct 2017 22:30:46 -0700 3Date: Wed, 4 Oct 2017 22:30:46 -0700
4Subject: [PATCH] libasm may link with libbz2 if found 4Subject: [PATCH] libasm may link with libbz2 if found
@@ -11,6 +11,7 @@ where indirect libraries may be not found by linker
11 11
12Upstream-Status: Pending 12Upstream-Status: Pending
13Signed-off-by: Khem Raj <raj.khem@gmail.com> 13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14
14--- 15---
15 src/Makefile.am | 4 ++-- 16 src/Makefile.am | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-) 17 1 file changed, 2 insertions(+), 2 deletions(-)
@@ -33,6 +34,3 @@ index 9305b84..9b7e853 100644
33 libdw = ../libdw/libdw.so $(zip_LIBS) $(libelf) $(libebl) -ldl 34 libdw = ../libdw/libdw.so $(zip_LIBS) $(libelf) $(libebl) -ldl
34 libelf = ../libelf/libelf.so 35 libelf = ../libelf/libelf.so
35 endif 36 endif
36--
372.7.4
38
diff --git a/meta/recipes-devtools/elfutils/files/0001-libelf-elf_end.c-check-data_list.data.d.d_buf-before.patch b/meta/recipes-devtools/elfutils/files/0001-libelf-elf_end.c-check-data_list.data.d.d_buf-before.patch
index 1bdb511698..b26ed99f65 100644
--- a/meta/recipes-devtools/elfutils/files/0001-libelf-elf_end.c-check-data_list.data.d.d_buf-before.patch
+++ b/meta/recipes-devtools/elfutils/files/0001-libelf-elf_end.c-check-data_list.data.d.d_buf-before.patch
@@ -1,4 +1,4 @@
1From 3393a2e544818f0bd1887c13f28a76ad60c2df98 Mon Sep 17 00:00:00 2001 1From e571cbd0c20085ec71969971f19280b5de95cfb7 Mon Sep 17 00:00:00 2001
2From: Robert Yang <liezhi.yang@windriver.com> 2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Thu, 16 Aug 2018 09:58:26 +0800 3Date: Thu, 16 Aug 2018 09:58:26 +0800
4Subject: [PATCH] libelf/elf_end.c: check data_list.data.d.d_buf before free it 4Subject: [PATCH] libelf/elf_end.c: check data_list.data.d.d_buf before free it
@@ -14,6 +14,7 @@ The segmentation fault happens when prelink call elf_end().
14Upstream-Status: Submitted [https://sourceware.org/ml/elfutils-devel/2018-q3/msg00085.html] 14Upstream-Status: Submitted [https://sourceware.org/ml/elfutils-devel/2018-q3/msg00085.html]
15 15
16Signed-off-by: Robert Yang <liezhi.yang@windriver.com> 16Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
17
17--- 18---
18 libelf/elf_end.c | 6 ++++-- 19 libelf/elf_end.c | 6 ++++--
19 1 file changed, 4 insertions(+), 2 deletions(-) 20 1 file changed, 4 insertions(+), 2 deletions(-)
@@ -41,6 +42,3 @@ index 160f0b8..5280a70 100644
41 free (scn->rawdata_base); 42 free (scn->rawdata_base);
42 43
43 /* Free the list of data buffers for the section. 44 /* Free the list of data buffers for the section.
44--
452.7.4
46
diff --git a/meta/recipes-devtools/elfutils/files/0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch b/meta/recipes-devtools/elfutils/files/0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch
index 86d26bdf35..96c2565e3e 100644
--- a/meta/recipes-devtools/elfutils/files/0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch
+++ b/meta/recipes-devtools/elfutils/files/0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch
@@ -1,7 +1,7 @@
1From 9fd4bb05d3f2b7eaf9fe441bee26d3b1878d7cc7 Mon Sep 17 00:00:00 2001 1From f8e4118b60a9b54950437006a82b4047f38f5347 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 15 Aug 2017 17:13:59 +0800 3Date: Tue, 15 Aug 2017 17:13:59 +0800
4Subject: [PATCH 2/7] Fix elf_cvt_gunhash if dest and src are same. 4Subject: [PATCH] Fix elf_cvt_gunhash if dest and src are same.
5 5
6Upstream-Status: Pending 6Upstream-Status: Pending
7 7
@@ -12,6 +12,7 @@ Signed-off-by: Baoshan Pang <BaoShan.Pang@windriver.com>
12 12
13Rebase to 0.170 13Rebase to 0.170
14Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 14Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
15
15--- 16---
16 libelf/gnuhash_xlate.h | 3 ++- 17 libelf/gnuhash_xlate.h | 3 ++-
17 1 file changed, 2 insertions(+), 1 deletion(-) 18 1 file changed, 2 insertions(+), 1 deletion(-)
@@ -37,6 +38,3 @@ index 6faf113..04d9ca1 100644
37 38
38 /* Now the 64 bit words. */ 39 /* Now the 64 bit words. */
39 Elf64_Xword *dest64 = (Elf64_Xword *) &dest32[4]; 40 Elf64_Xword *dest64 = (Elf64_Xword *) &dest32[4];
40--
412.7.4
42
diff --git a/meta/recipes-devtools/elfutils/files/0003-fixheadercheck.patch b/meta/recipes-devtools/elfutils/files/0003-fixheadercheck.patch
index d1c8e4143e..e36d3f44dd 100644
--- a/meta/recipes-devtools/elfutils/files/0003-fixheadercheck.patch
+++ b/meta/recipes-devtools/elfutils/files/0003-fixheadercheck.patch
@@ -1,7 +1,7 @@
1From 04fb3f65ec186df5231dd0c21780a55dcc03c868 Mon Sep 17 00:00:00 2001 1From dd7c8c730457def5f62ebd43022b2f06df8c6ed9 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 15 Aug 2017 17:17:20 +0800 3Date: Tue, 15 Aug 2017 17:17:20 +0800
4Subject: [PATCH 3/7] fixheadercheck 4Subject: [PATCH] fixheadercheck
5 5
6For some binaries we can get a invalid section alignment, for example if 6For some binaries we can get a invalid section alignment, for example if
7sh_align = 1 and sh_addralign is 0. In the case of a zero size section 7sh_align = 1 and sh_addralign is 0. In the case of a zero size section
@@ -16,6 +16,7 @@ Upstream-Status: Pending
16 16
17Rebase to 0.170 17Rebase to 0.170
18Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 18Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
19
19--- 20---
20 libelf/elf32_updatenull.c | 4 ++-- 21 libelf/elf32_updatenull.c | 4 ++--
21 1 file changed, 2 insertions(+), 2 deletions(-) 22 1 file changed, 2 insertions(+), 2 deletions(-)
@@ -35,6 +36,3 @@ index 3e9ef61..5351518 100644
35 { 36 {
36 __libelf_seterrno (ELF_E_INVALID_ALIGN); 37 __libelf_seterrno (ELF_E_INVALID_ALIGN);
37 return -1; 38 return -1;
38--
392.7.4
40
diff --git a/meta/recipes-devtools/elfutils/files/0004-Disable-the-test-to-convert-euc-jp.patch b/meta/recipes-devtools/elfutils/files/0004-Disable-the-test-to-convert-euc-jp.patch
index bf3a645bc6..5dee61210a 100644
--- a/meta/recipes-devtools/elfutils/files/0004-Disable-the-test-to-convert-euc-jp.patch
+++ b/meta/recipes-devtools/elfutils/files/0004-Disable-the-test-to-convert-euc-jp.patch
@@ -1,7 +1,7 @@
1From dbc88349b9eed4268db951df2c3a8387f75a32e7 Mon Sep 17 00:00:00 2001 1From e4ede22e28eaa38d81667ddcb19541ece1a83cf8 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 15 Aug 2017 17:24:06 +0800 3Date: Tue, 15 Aug 2017 17:24:06 +0800
4Subject: [PATCH 4/7] Disable the test to convert euc-jp 4Subject: [PATCH] Disable the test to convert euc-jp
5 5
6Remove the test "Test against HP-UX 11.11 bug: 6Remove the test "Test against HP-UX 11.11 bug:
7No converter from EUC-JP to UTF-8 is provided" 7No converter from EUC-JP to UTF-8 is provided"
@@ -15,6 +15,7 @@ Signed-off-by: Roy Li <rongqing.li@windriver.com>
15 15
16Rebase to 0.170 16Rebase to 0.170
17Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 17Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
18
18--- 19---
19 m4/iconv.m4 | 2 ++ 20 m4/iconv.m4 | 2 ++
20 1 file changed, 2 insertions(+) 21 1 file changed, 2 insertions(+)
@@ -39,6 +40,3 @@ index a503646..299f1eb 100644
39 return result; 40 return result;
40 }]])], 41 }]])],
41 [am_cv_func_iconv_works=yes], 42 [am_cv_func_iconv_works=yes],
42--
432.7.4
44
diff --git a/meta/recipes-devtools/elfutils/files/0006-Fix-build-on-aarch64-musl.patch b/meta/recipes-devtools/elfutils/files/0006-Fix-build-on-aarch64-musl.patch
index 40b8544fa5..6f7956c5ae 100644
--- a/meta/recipes-devtools/elfutils/files/0006-Fix-build-on-aarch64-musl.patch
+++ b/meta/recipes-devtools/elfutils/files/0006-Fix-build-on-aarch64-musl.patch
@@ -1,7 +1,7 @@
1From b4ec05953f78af26bcd7de45a5bbc5f138d023da Mon Sep 17 00:00:00 2001 1From 578f370c7e7a9f056aefa062b34590b0aa13bce5 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 15 Aug 2017 17:27:30 +0800 3Date: Tue, 15 Aug 2017 17:27:30 +0800
4Subject: [PATCH 6/7] Fix build on aarch64/musl 4Subject: [PATCH] Fix build on aarch64/musl
5 5
6Errors 6Errors
7 7
@@ -16,6 +16,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
16 16
17Rebase to 0.170 17Rebase to 0.170
18Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 18Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
19
19--- 20---
20 backends/aarch64_initreg.c | 4 ++-- 21 backends/aarch64_initreg.c | 4 ++--
21 backends/arm_initreg.c | 2 +- 22 backends/arm_initreg.c | 2 +-
@@ -56,6 +57,3 @@ index efcabaf..062bb9e 100644
56 # include <sys/user.h> 57 # include <sys/user.h>
57 # include <sys/ptrace.h> 58 # include <sys/ptrace.h>
58 /* Deal with old glibc defining user_pt_regs instead of user_regs_struct. */ 59 /* Deal with old glibc defining user_pt_regs instead of user_regs_struct. */
59--
602.7.4
61
diff --git a/meta/recipes-devtools/elfutils/files/0007-Fix-control-path-where-we-have-str-as-uninitialized-.patch b/meta/recipes-devtools/elfutils/files/0007-Fix-control-path-where-we-have-str-as-uninitialized-.patch
index bba420e349..611a24c0f5 100644
--- a/meta/recipes-devtools/elfutils/files/0007-Fix-control-path-where-we-have-str-as-uninitialized-.patch
+++ b/meta/recipes-devtools/elfutils/files/0007-Fix-control-path-where-we-have-str-as-uninitialized-.patch
@@ -1,8 +1,7 @@
1From 8eb100b2e51be5d473b0748a223e2e7f61ec606c Mon Sep 17 00:00:00 2001 1From 112d1645bab7922c7796fe32ddea8fa6e1bbded1 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Fri, 29 Jun 2018 15:14:28 +0800 3Date: Fri, 29 Jun 2018 15:14:28 +0800
4Subject: [PATCH 7/7] Fix control path where we have str as uninitialized 4Subject: [PATCH] Fix control path where we have str as uninitialized string
5 string
6 5
7| 6|
8/home/ubuntu/work/oe/openembedded-core/build/tmp-musl/work/i586-oe-linux-musl/elfutils/0.164-r0/elfutils-0.164/libcpu/i386_disasm.c: 7/home/ubuntu/work/oe/openembedded-core/build/tmp-musl/work/i586-oe-linux-musl/elfutils/0.164-r0/elfutils-0.164/libcpu/i386_disasm.c:
@@ -24,6 +23,7 @@ Upstream-Status: Pending
24Rebase to 0.172 23Rebase to 0.172
25 24
26Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 25Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
26
27--- 27---
28 libcpu/i386_disasm.c | 1 + 28 libcpu/i386_disasm.c | 1 +
29 1 file changed, 1 insertion(+) 29 1 file changed, 1 insertion(+)
@@ -40,6 +40,3 @@ index a7e03f9..837a3a8 100644
40 assert (! "INVALID not handled"); 40 assert (! "INVALID not handled");
41 } 41 }
42 } 42 }
43--
442.7.4
45
diff --git a/meta/recipes-devtools/elfutils/files/0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch b/meta/recipes-devtools/elfutils/files/0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch
index 41981f4aad..a4f301d9da 100644
--- a/meta/recipes-devtools/elfutils/files/0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch
+++ b/meta/recipes-devtools/elfutils/files/0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch
@@ -1,4 +1,4 @@
1From 207be05c44da5c4c31179a34660e176145ff8d4b Mon Sep 17 00:00:00 2001 1From 990d377a92f4bab04bf6820fc81b3dcb6cf5e31d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 2 Jul 2018 09:52:23 +0800 3Date: Mon, 2 Jul 2018 09:52:23 +0800
4Subject: [PATCH] build: Provide alternatives for glibc assumptions helps 4Subject: [PATCH] build: Provide alternatives for glibc assumptions helps
@@ -10,6 +10,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
10Rebase to 0.175 10Rebase to 0.175
11 11
12Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 12Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
13
13--- 14---
14 Makefile.am | 2 +- 15 Makefile.am | 2 +-
15 lib/fixedsizehash.h | 1 - 16 lib/fixedsizehash.h | 1 -
@@ -221,6 +222,3 @@ index 9f3e8e9..10a347a 100644
221 222
222 #include <errno.h> 223 #include <errno.h>
223 #include <stdbool.h> 224 #include <stdbool.h>
224--
2252.7.4
226
diff --git a/meta/recipes-devtools/elfutils/files/debian/0001-Ignore-differences-between-mips-machine-identifiers.patch b/meta/recipes-devtools/elfutils/files/debian/0001-Ignore-differences-between-mips-machine-identifiers.patch
index fa3a3c66b1..892b8e8733 100644
--- a/meta/recipes-devtools/elfutils/files/debian/0001-Ignore-differences-between-mips-machine-identifiers.patch
+++ b/meta/recipes-devtools/elfutils/files/debian/0001-Ignore-differences-between-mips-machine-identifiers.patch
@@ -1,7 +1,7 @@
1From 77cb4a53c270d5854d3af24f19547bc3de825233 Mon Sep 17 00:00:00 2001 1From 46d2c2f8fecad85baeed9fe211f5285820220442 Mon Sep 17 00:00:00 2001
2From: James Cowgill <james410@cowgill.org.uk> 2From: James Cowgill <james410@cowgill.org.uk>
3Date: Mon, 5 Jan 2015 15:16:58 +0000 3Date: Mon, 5 Jan 2015 15:16:58 +0000
4Subject: [PATCH 1/3] Ignore differences between mips machine identifiers 4Subject: [PATCH] Ignore differences between mips machine identifiers
5 5
6Little endian binaries actually use EM_MIPS so you can't tell the endianness 6Little endian binaries actually use EM_MIPS so you can't tell the endianness
7from the elf machine id. Also, the EM_MIPS_RS3_LE machine is dead anyway (the 7from the elf machine id. Also, the EM_MIPS_RS3_LE machine is dead anyway (the
@@ -10,15 +10,16 @@ kernel will not load binaries containing it).
10Signed-off-by: James Cowgill <james410@cowgill.org.uk> 10Signed-off-by: James Cowgill <james410@cowgill.org.uk>
11Upstream-Status: Pending [from debian] 11Upstream-Status: Pending [from debian]
12Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 12Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
13
13--- 14---
14 backends/mips_init.c | 6 +----- 15 backends/mips_init.c | 6 +-----
15 1 file changed, 1 insertion(+), 5 deletions(-) 16 1 file changed, 1 insertion(+), 5 deletions(-)
16 17
17Index: b/backends/mips_init.c 18diff --git a/backends/mips_init.c b/backends/mips_init.c
18=================================================================== 19index 975c04e..8482e7f 100644
19--- a/backends/mips_init.c 20--- a/backends/mips_init.c
20+++ b/backends/mips_init.c 21+++ b/backends/mips_init.c
21@@ -45,11 +45,7 @@ mips_init (Elf *elf __attribute__ ((unus 22@@ -45,11 +45,7 @@ mips_init (Elf *elf __attribute__ ((unused)),
22 return NULL; 23 return NULL;
23 24
24 /* We handle it. */ 25 /* We handle it. */
diff --git a/meta/recipes-devtools/elfutils/files/debian/0002-Add-support-for-mips64-abis-in-mips_retval.c.patch b/meta/recipes-devtools/elfutils/files/debian/0002-Add-support-for-mips64-abis-in-mips_retval.c.patch
index 1ab704e67b..7c0b9c6dc6 100644
--- a/meta/recipes-devtools/elfutils/files/debian/0002-Add-support-for-mips64-abis-in-mips_retval.c.patch
+++ b/meta/recipes-devtools/elfutils/files/debian/0002-Add-support-for-mips64-abis-in-mips_retval.c.patch
@@ -1,17 +1,18 @@
1From fdaab18a65ed2529656baa64cb6169f34d7e507b Mon Sep 17 00:00:00 2001 1From 93ae9bb7d25a1adbcbab23a9b8493f370a93f0a3 Mon Sep 17 00:00:00 2001
2From: James Cowgill <james410@cowgill.org.uk> 2From: James Cowgill <james410@cowgill.org.uk>
3Date: Mon, 5 Jan 2015 15:17:01 +0000 3Date: Mon, 5 Jan 2015 15:17:01 +0000
4Subject: [PATCH 2/3] Add support for mips64 abis in mips_retval.c 4Subject: [PATCH] Add support for mips64 abis in mips_retval.c
5 5
6Signed-off-by: James Cowgill <james410@cowgill.org.uk> 6Signed-off-by: James Cowgill <james410@cowgill.org.uk>
7Upstream-Status: Pending [from debian] 7Upstream-Status: Pending [from debian]
8Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 8Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
9
9--- 10---
10 backends/mips_retval.c | 104 ++++++++++++++++++++++++++++++++++++++++++++----- 11 backends/mips_retval.c | 104 +++++++++++++++++++++++++++++++++++++----
11 1 file changed, 94 insertions(+), 10 deletions(-) 12 1 file changed, 94 insertions(+), 10 deletions(-)
12 13
13diff --git a/backends/mips_retval.c b/backends/mips_retval.c 14diff --git a/backends/mips_retval.c b/backends/mips_retval.c
14index 33f12a7..d5c6ef0 100644 15index 656cd1f..57487bb 100644
15--- a/backends/mips_retval.c 16--- a/backends/mips_retval.c
16+++ b/backends/mips_retval.c 17+++ b/backends/mips_retval.c
17@@ -91,6 +91,8 @@ enum mips_abi find_mips_abi(Elf *elf) 18@@ -91,6 +91,8 @@ enum mips_abi find_mips_abi(Elf *elf)
@@ -165,6 +166,3 @@ index 33f12a7..d5c6ef0 100644
165 *locp = loc_aggregate; 166 *locp = loc_aggregate;
166 return nloc_aggregate; 167 return nloc_aggregate;
167 } 168 }
168--
1692.1.4
170
diff --git a/meta/recipes-devtools/elfutils/files/debian/0003-Add-mips-n64-relocation-format-hack.patch b/meta/recipes-devtools/elfutils/files/debian/0003-Add-mips-n64-relocation-format-hack.patch
index b196802bc1..17b98a7964 100644
--- a/meta/recipes-devtools/elfutils/files/debian/0003-Add-mips-n64-relocation-format-hack.patch
+++ b/meta/recipes-devtools/elfutils/files/debian/0003-Add-mips-n64-relocation-format-hack.patch
@@ -1,7 +1,7 @@
1From 59d4b8c48e5040af7e02b34eb26ea602ec82a38e Mon Sep 17 00:00:00 2001 1From bce44aece915698a224a8aefa66784b27455675b Mon Sep 17 00:00:00 2001
2From: James Cowgill <james410@cowgill.org.uk> 2From: James Cowgill <james410@cowgill.org.uk>
3Date: Mon, 5 Jan 2015 15:17:02 +0000 3Date: Mon, 5 Jan 2015 15:17:02 +0000
4Subject: [PATCH 3/3] Add mips n64 relocation format hack 4Subject: [PATCH] Add mips n64 relocation format hack
5 5
6MIPSEL N64 ELF files use a slightly different format for storing relocation 6MIPSEL N64 ELF files use a slightly different format for storing relocation
7entries which is incompatible with the normal R_SYM / R_INFO macros. 7entries which is incompatible with the normal R_SYM / R_INFO macros.
@@ -14,6 +14,7 @@ before manipulating relocations so that these changes take effect.
14Signed-off-by: James Cowgill <james410@cowgill.org.uk> 14Signed-off-by: James Cowgill <james410@cowgill.org.uk>
15Upstream-Status: Pending [from debian] 15Upstream-Status: Pending [from debian]
16Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 16Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
17
17--- 18---
18 libelf/gelf_getrel.c | 25 +++++++++++++++++++++++-- 19 libelf/gelf_getrel.c | 25 +++++++++++++++++++++++--
19 libelf/gelf_getrela.c | 25 +++++++++++++++++++++++-- 20 libelf/gelf_getrela.c | 25 +++++++++++++++++++++++--
@@ -22,10 +23,10 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
22 src/strip.c | 17 +++++++++++++++++ 23 src/strip.c | 17 +++++++++++++++++
23 5 files changed, 101 insertions(+), 6 deletions(-) 24 5 files changed, 101 insertions(+), 6 deletions(-)
24 25
25Index: elfutils-0.175/libelf/gelf_getrel.c 26diff --git a/libelf/gelf_getrel.c b/libelf/gelf_getrel.c
26=================================================================== 27index 309e3d3..2a81a97 100644
27--- elfutils-0.175.orig/libelf/gelf_getrel.c 28--- a/libelf/gelf_getrel.c
28+++ elfutils-0.175/libelf/gelf_getrel.c 29+++ b/libelf/gelf_getrel.c
29@@ -36,6 +36,7 @@ 30@@ -36,6 +36,7 @@
30 31
31 #include "libelfP.h" 32 #include "libelfP.h"
@@ -34,7 +35,7 @@ Index: elfutils-0.175/libelf/gelf_getrel.c
34 35
35 GElf_Rel * 36 GElf_Rel *
36 gelf_getrel (Elf_Data *data, int ndx, GElf_Rel *dst) 37 gelf_getrel (Elf_Data *data, int ndx, GElf_Rel *dst)
37@@ -89,8 +90,28 @@ gelf_getrel (Elf_Data *data, int ndx, GE 38@@ -89,8 +90,28 @@ gelf_getrel (Elf_Data *data, int ndx, GElf_Rel *dst)
38 result = NULL; 39 result = NULL;
39 } 40 }
40 else 41 else
@@ -65,10 +66,10 @@ Index: elfutils-0.175/libelf/gelf_getrel.c
65 } 66 }
66 67
67 rwlock_unlock (scn->elf->lock); 68 rwlock_unlock (scn->elf->lock);
68Index: elfutils-0.175/libelf/gelf_getrela.c 69diff --git a/libelf/gelf_getrela.c b/libelf/gelf_getrela.c
69=================================================================== 70index d695f65..1f42a80 100644
70--- elfutils-0.175.orig/libelf/gelf_getrela.c 71--- a/libelf/gelf_getrela.c
71+++ elfutils-0.175/libelf/gelf_getrela.c 72+++ b/libelf/gelf_getrela.c
72@@ -36,6 +36,7 @@ 73@@ -36,6 +36,7 @@
73 74
74 #include "libelfP.h" 75 #include "libelfP.h"
@@ -77,7 +78,7 @@ Index: elfutils-0.175/libelf/gelf_getrela.c
77 78
78 GElf_Rela * 79 GElf_Rela *
79 gelf_getrela (Elf_Data *data, int ndx, GElf_Rela *dst) 80 gelf_getrela (Elf_Data *data, int ndx, GElf_Rela *dst)
80@@ -90,8 +91,28 @@ gelf_getrela (Elf_Data *data, int ndx, G 81@@ -90,8 +91,28 @@ gelf_getrela (Elf_Data *data, int ndx, GElf_Rela *dst)
81 result = NULL; 82 result = NULL;
82 } 83 }
83 else 84 else
@@ -108,10 +109,10 @@ Index: elfutils-0.175/libelf/gelf_getrela.c
108 } 109 }
109 110
110 rwlock_unlock (scn->elf->lock); 111 rwlock_unlock (scn->elf->lock);
111Index: elfutils-0.175/libelf/gelf_update_rel.c 112diff --git a/libelf/gelf_update_rel.c b/libelf/gelf_update_rel.c
112=================================================================== 113index 14f62e9..9095556 100644
113--- elfutils-0.175.orig/libelf/gelf_update_rel.c 114--- a/libelf/gelf_update_rel.c
114+++ elfutils-0.175/libelf/gelf_update_rel.c 115+++ b/libelf/gelf_update_rel.c
115@@ -36,6 +36,7 @@ 116@@ -36,6 +36,7 @@
116 117
117 #include "libelfP.h" 118 #include "libelfP.h"
@@ -120,7 +121,7 @@ Index: elfutils-0.175/libelf/gelf_update_rel.c
120 121
121 int 122 int
122 gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src) 123 gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src)
123@@ -86,6 +87,9 @@ gelf_update_rel (Elf_Data *dst, int ndx, 124@@ -86,6 +87,9 @@ gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src)
124 } 125 }
125 else 126 else
126 { 127 {
@@ -130,7 +131,7 @@ Index: elfutils-0.175/libelf/gelf_update_rel.c
130 /* Check whether we have to resize the data buffer. */ 131 /* Check whether we have to resize the data buffer. */
131 if (INVALID_NDX (ndx, Elf64_Rel, &data_scn->d)) 132 if (INVALID_NDX (ndx, Elf64_Rel, &data_scn->d))
132 { 133 {
133@@ -93,7 +97,21 @@ gelf_update_rel (Elf_Data *dst, int ndx, 134@@ -93,7 +97,21 @@ gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src)
134 goto out; 135 goto out;
135 } 136 }
136 137
@@ -153,10 +154,10 @@ Index: elfutils-0.175/libelf/gelf_update_rel.c
153 } 154 }
154 155
155 result = 1; 156 result = 1;
156Index: elfutils-0.175/libelf/gelf_update_rela.c 157diff --git a/libelf/gelf_update_rela.c b/libelf/gelf_update_rela.c
157=================================================================== 158index 8825270..4caa85f 100644
158--- elfutils-0.175.orig/libelf/gelf_update_rela.c 159--- a/libelf/gelf_update_rela.c
159+++ elfutils-0.175/libelf/gelf_update_rela.c 160+++ b/libelf/gelf_update_rela.c
160@@ -36,6 +36,7 @@ 161@@ -36,6 +36,7 @@
161 162
162 #include "libelfP.h" 163 #include "libelfP.h"
@@ -165,7 +166,7 @@ Index: elfutils-0.175/libelf/gelf_update_rela.c
165 166
166 int 167 int
167 gelf_update_rela (Elf_Data *dst, int ndx, GElf_Rela *src) 168 gelf_update_rela (Elf_Data *dst, int ndx, GElf_Rela *src)
168@@ -89,6 +90,9 @@ gelf_update_rela (Elf_Data *dst, int ndx 169@@ -89,6 +90,9 @@ gelf_update_rela (Elf_Data *dst, int ndx, GElf_Rela *src)
169 } 170 }
170 else 171 else
171 { 172 {
@@ -175,7 +176,7 @@ Index: elfutils-0.175/libelf/gelf_update_rela.c
175 /* Check whether we have to resize the data buffer. */ 176 /* Check whether we have to resize the data buffer. */
176 if (INVALID_NDX (ndx, Elf64_Rela, &data_scn->d)) 177 if (INVALID_NDX (ndx, Elf64_Rela, &data_scn->d))
177 { 178 {
178@@ -96,7 +100,21 @@ gelf_update_rela (Elf_Data *dst, int ndx 179@@ -96,7 +100,21 @@ gelf_update_rela (Elf_Data *dst, int ndx, GElf_Rela *src)
179 goto out; 180 goto out;
180 } 181 }
181 182
@@ -198,11 +199,11 @@ Index: elfutils-0.175/libelf/gelf_update_rela.c
198 } 199 }
199 200
200 result = 1; 201 result = 1;
201Index: elfutils-0.175/src/strip.c 202diff --git a/src/strip.c b/src/strip.c
202=================================================================== 203index a73009d..75bd7ba 100644
203--- elfutils-0.175.orig/src/strip.c 204--- a/src/strip.c
204+++ elfutils-0.175/src/strip.c 205+++ b/src/strip.c
205@@ -1062,6 +1062,23 @@ handle_elf (int fd, Elf *elf, const char 206@@ -1062,6 +1062,23 @@ handle_elf (int fd, Elf *elf, const char *prefix, const char *fname,
206 goto fail; 207 goto fail;
207 } 208 }
208 209
diff --git a/meta/recipes-devtools/elfutils/files/debian/arm_backend.diff b/meta/recipes-devtools/elfutils/files/debian/arm_backend.diff
index f7258a8d22..9904f24150 100644
--- a/meta/recipes-devtools/elfutils/files/debian/arm_backend.diff
+++ b/meta/recipes-devtools/elfutils/files/debian/arm_backend.diff
@@ -1,10 +1,27 @@
1From f3384466475eab373c0f1cb79c61d45709913b00 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Wed, 28 May 2014 16:49:57 +0800
4Subject: [PATCH] elfutils: upgrade to 0.158
5
1Upstream-Status: Pending [from debian] 6Upstream-Status: Pending [from debian]
2Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 7Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
3 8
4Index: elfutils-0.175/backends/arm_init.c 9---
5=================================================================== 10 backends/arm_init.c | 18 +++-
6--- elfutils-0.175.orig/backends/arm_init.c 11 backends/arm_regs.c | 132 ++++++++++++++++++++++++++++
7+++ elfutils-0.175/backends/arm_init.c 12 backends/arm_retval.c | 43 ++++++++-
13 backends/libebl_arm.h | 9 ++
14 libelf/elf.h | 11 +++
15 tests/run-addrcfi.sh | 93 +++++++++++++++++++-
16 tests/run-allregs.sh | 95 +++++++++++++++++++-
17 tests/run-readelf-mixed-corenote.sh | 11 ++-
18 8 files changed, 400 insertions(+), 12 deletions(-)
19 create mode 100644 backends/libebl_arm.h
20
21diff --git a/backends/arm_init.c b/backends/arm_init.c
22index f2b1b11..1b71f16 100644
23--- a/backends/arm_init.c
24+++ b/backends/arm_init.c
8@@ -35,20 +35,31 @@ 25@@ -35,20 +35,31 @@
9 #define RELOC_PREFIX R_ARM_ 26 #define RELOC_PREFIX R_ARM_
10 #include "libebl_CPU.h" 27 #include "libebl_CPU.h"
@@ -38,7 +55,7 @@ Index: elfutils-0.175/backends/arm_init.c
38 /* We handle it. */ 55 /* We handle it. */
39 eh->name = "ARM"; 56 eh->name = "ARM";
40 arm_init_reloc (eh); 57 arm_init_reloc (eh);
41@@ -60,7 +71,10 @@ arm_init (Elf *elf __attribute__ ((unuse 58@@ -60,7 +71,10 @@ arm_init (Elf *elf __attribute__ ((unused)),
42 HOOK (eh, core_note); 59 HOOK (eh, core_note);
43 HOOK (eh, auxv_info); 60 HOOK (eh, auxv_info);
44 HOOK (eh, check_object_attribute); 61 HOOK (eh, check_object_attribute);
@@ -50,10 +67,10 @@ Index: elfutils-0.175/backends/arm_init.c
50 HOOK (eh, abi_cfi); 67 HOOK (eh, abi_cfi);
51 HOOK (eh, check_reloc_target_type); 68 HOOK (eh, check_reloc_target_type);
52 HOOK (eh, symbol_type_name); 69 HOOK (eh, symbol_type_name);
53Index: elfutils-0.175/backends/arm_regs.c 70diff --git a/backends/arm_regs.c b/backends/arm_regs.c
54=================================================================== 71index a46a4c9..418c931 100644
55--- elfutils-0.175.orig/backends/arm_regs.c 72--- a/backends/arm_regs.c
56+++ elfutils-0.175/backends/arm_regs.c 73+++ b/backends/arm_regs.c
57@@ -31,6 +31,7 @@ 74@@ -31,6 +31,7 @@
58 #endif 75 #endif
59 76
@@ -62,7 +79,7 @@ Index: elfutils-0.175/backends/arm_regs.c
62 #include <dwarf.h> 79 #include <dwarf.h>
63 80
64 #define BACKEND arm_ 81 #define BACKEND arm_
65@@ -76,6 +77,9 @@ arm_register_info (Ebl *ebl __attribute_ 82@@ -76,6 +77,9 @@ arm_register_info (Ebl *ebl __attribute__ ((unused)),
66 break; 83 break;
67 84
68 case 16 + 0 ... 16 + 7: 85 case 16 + 0 ... 16 + 7:
@@ -72,7 +89,7 @@ Index: elfutils-0.175/backends/arm_regs.c
72 regno += 96 - 16; 89 regno += 96 - 16;
73 FALLTHROUGH; 90 FALLTHROUGH;
74 case 96 + 0 ... 96 + 7: 91 case 96 + 0 ... 96 + 7:
75@@ -87,11 +91,139 @@ arm_register_info (Ebl *ebl __attribute_ 92@@ -87,11 +91,139 @@ arm_register_info (Ebl *ebl __attribute__ ((unused)),
76 namelen = 2; 93 namelen = 2;
77 break; 94 break;
78 95
@@ -212,10 +229,10 @@ Index: elfutils-0.175/backends/arm_regs.c
212 *setname = "VFP"; 229 *setname = "VFP";
213 *type = DW_ATE_float; 230 *type = DW_ATE_float;
214 *bits = 64; 231 *bits = 64;
215Index: elfutils-0.175/backends/arm_retval.c 232diff --git a/backends/arm_retval.c b/backends/arm_retval.c
216=================================================================== 233index 1c28f01..313e4eb 100644
217--- elfutils-0.175.orig/backends/arm_retval.c 234--- a/backends/arm_retval.c
218+++ elfutils-0.175/backends/arm_retval.c 235+++ b/backends/arm_retval.c
219@@ -48,6 +48,13 @@ static const Dwarf_Op loc_intreg[] = 236@@ -48,6 +48,13 @@ static const Dwarf_Op loc_intreg[] =
220 #define nloc_intreg 1 237 #define nloc_intreg 1
221 #define nloc_intregs(n) (2 * (n)) 238 #define nloc_intregs(n) (2 * (n))
@@ -242,7 +259,7 @@ Index: elfutils-0.175/backends/arm_retval.c
242 { 259 {
243 /* Start with the function's type, and get the DW_AT_type attribute, 260 /* Start with the function's type, and get the DW_AT_type attribute,
244 which is the type of the return value. */ 261 which is the type of the return value. */
245@@ -98,6 +106,21 @@ arm_return_value_location (Dwarf_Die *fu 262@@ -98,6 +106,21 @@ arm_return_value_location (Dwarf_Die *functypedie, const Dwarf_Op **locp)
246 else 263 else
247 return -1; 264 return -1;
248 } 265 }
@@ -264,7 +281,7 @@ Index: elfutils-0.175/backends/arm_retval.c
264 if (size <= 16) 281 if (size <= 16)
265 { 282 {
266 intreg: 283 intreg:
267@@ -106,6 +129,7 @@ arm_return_value_location (Dwarf_Die *fu 284@@ -106,6 +129,7 @@ arm_return_value_location (Dwarf_Die *functypedie, const Dwarf_Op **locp)
268 } 285 }
269 286
270 aggregate: 287 aggregate:
@@ -272,7 +289,7 @@ Index: elfutils-0.175/backends/arm_retval.c
272 *locp = loc_aggregate; 289 *locp = loc_aggregate;
273 return nloc_aggregate; 290 return nloc_aggregate;
274 } 291 }
275@@ -125,3 +149,18 @@ arm_return_value_location (Dwarf_Die *fu 292@@ -125,3 +149,18 @@ arm_return_value_location (Dwarf_Die *functypedie, const Dwarf_Op **locp)
276 DWARF and might be valid. */ 293 DWARF and might be valid. */
277 return -2; 294 return -2;
278 } 295 }
@@ -291,10 +308,25 @@ Index: elfutils-0.175/backends/arm_retval.c
291+ return arm_return_value_location_ (functypedie, locp, 0); 308+ return arm_return_value_location_ (functypedie, locp, 0);
292+} 309+}
293+ 310+
294Index: elfutils-0.175/libelf/elf.h 311diff --git a/backends/libebl_arm.h b/backends/libebl_arm.h
295=================================================================== 312new file mode 100644
296--- elfutils-0.175.orig/libelf/elf.h 313index 0000000..c00770c
297+++ elfutils-0.175/libelf/elf.h 314--- /dev/null
315+++ b/backends/libebl_arm.h
316@@ -0,0 +1,9 @@
317+#ifndef _LIBEBL_ARM_H
318+#define _LIBEBL_ARM_H 1
319+
320+#include <libdw.h>
321+
322+extern int arm_return_value_location_soft(Dwarf_Die *, const Dwarf_Op **locp);
323+extern int arm_return_value_location_hard(Dwarf_Die *, const Dwarf_Op **locp);
324+
325+#endif
326diff --git a/libelf/elf.h b/libelf/elf.h
327index 6310054..5dc632b 100644
328--- a/libelf/elf.h
329+++ b/libelf/elf.h
298@@ -2694,6 +2694,9 @@ enum 330@@ -2694,6 +2694,9 @@ enum
299 #define EF_ARM_EABI_VER4 0x04000000 331 #define EF_ARM_EABI_VER4 0x04000000
300 #define EF_ARM_EABI_VER5 0x05000000 332 #define EF_ARM_EABI_VER5 0x05000000
@@ -333,24 +365,121 @@ Index: elfutils-0.175/libelf/elf.h
333 #define R_ARM_ME_TOO 128 /* Obsolete. */ 365 #define R_ARM_ME_TOO 128 /* Obsolete. */
334 #define R_ARM_THM_TLS_DESCSEQ 129 366 #define R_ARM_THM_TLS_DESCSEQ 129
335 #define R_ARM_THM_TLS_DESCSEQ16 129 367 #define R_ARM_THM_TLS_DESCSEQ16 129
336Index: elfutils-0.175/backends/libebl_arm.h 368diff --git a/tests/run-addrcfi.sh b/tests/run-addrcfi.sh
337=================================================================== 369index fd89d02..462d7c5 100755
338--- /dev/null 370--- a/tests/run-addrcfi.sh
339+++ elfutils-0.175/backends/libebl_arm.h 371+++ b/tests/run-addrcfi.sh
340@@ -0,0 +1,9 @@ 372@@ -3554,6 +3554,38 @@ dwarf_cfi_addrframe (.eh_frame): no matching address range
341+#ifndef _LIBEBL_ARM_H 373 FPA reg21 (f5): undefined
342+#define _LIBEBL_ARM_H 1 374 FPA reg22 (f6): undefined
343+ 375 FPA reg23 (f7): undefined
344+#include <libdw.h> 376+ VFP reg64 (s0): undefined
345+ 377+ VFP reg65 (s1): undefined
346+extern int arm_return_value_location_soft(Dwarf_Die *, const Dwarf_Op **locp); 378+ VFP reg66 (s2): undefined
347+extern int arm_return_value_location_hard(Dwarf_Die *, const Dwarf_Op **locp); 379+ VFP reg67 (s3): undefined
348+ 380+ VFP reg68 (s4): undefined
349+#endif 381+ VFP reg69 (s5): undefined
350Index: elfutils-0.175/tests/run-allregs.sh 382+ VFP reg70 (s6): undefined
351=================================================================== 383+ VFP reg71 (s7): undefined
352--- elfutils-0.175.orig/tests/run-allregs.sh 384+ VFP reg72 (s8): undefined
353+++ elfutils-0.175/tests/run-allregs.sh 385+ VFP reg73 (s9): undefined
386+ VFP reg74 (s10): undefined
387+ VFP reg75 (s11): undefined
388+ VFP reg76 (s12): undefined
389+ VFP reg77 (s13): undefined
390+ VFP reg78 (s14): undefined
391+ VFP reg79 (s15): undefined
392+ VFP reg80 (s16): undefined
393+ VFP reg81 (s17): undefined
394+ VFP reg82 (s18): undefined
395+ VFP reg83 (s19): undefined
396+ VFP reg84 (s20): undefined
397+ VFP reg85 (s21): undefined
398+ VFP reg86 (s22): undefined
399+ VFP reg87 (s23): undefined
400+ VFP reg88 (s24): undefined
401+ VFP reg89 (s25): undefined
402+ VFP reg90 (s26): undefined
403+ VFP reg91 (s27): undefined
404+ VFP reg92 (s28): undefined
405+ VFP reg93 (s29): undefined
406+ VFP reg94 (s30): undefined
407+ VFP reg95 (s31): undefined
408 FPA reg96 (f0): undefined
409 FPA reg97 (f1): undefined
410 FPA reg98 (f2): undefined
411@@ -3562,7 +3594,66 @@ dwarf_cfi_addrframe (.eh_frame): no matching address range
412 FPA reg101 (f5): undefined
413 FPA reg102 (f6): undefined
414 FPA reg103 (f7): undefined
415- integer reg128 (spsr): undefined
416+ MMX reg104 (wcgr0): undefined
417+ MMX reg105 (wcgr1): undefined
418+ MMX reg106 (wcgr2): undefined
419+ MMX reg107 (wcgr3): undefined
420+ MMX reg108 (wcgr4): undefined
421+ MMX reg109 (wcgr5): undefined
422+ MMX reg110 (wcgr6): undefined
423+ MMX reg111 (wcgr7): undefined
424+ MMX reg112 (wr0): undefined
425+ MMX reg113 (wr1): undefined
426+ MMX reg114 (wr2): undefined
427+ MMX reg115 (wr3): undefined
428+ MMX reg116 (wr4): undefined
429+ MMX reg117 (wr5): undefined
430+ MMX reg118 (wr6): undefined
431+ MMX reg119 (wr7): undefined
432+ MMX reg120 (wr8): undefined
433+ MMX reg121 (wr9): undefined
434+ MMX reg122 (wr10): undefined
435+ MMX reg123 (wr11): undefined
436+ MMX reg124 (wr12): undefined
437+ MMX reg125 (wr13): undefined
438+ MMX reg126 (wr14): undefined
439+ MMX reg127 (wr15): undefined
440+ state reg128 (spsr): undefined
441+ state reg129 (spsr_fiq): undefined
442+ state reg130 (spsr_irq): undefined
443+ state reg131 (spsr_abt): undefined
444+ state reg132 (spsr_und): undefined
445+ state reg133 (spsr_svc): undefined
446+ integer reg144 (r8_usr): undefined
447+ integer reg145 (r9_usr): undefined
448+ integer reg146 (r10_usr): undefined
449+ integer reg147 (r11_usr): undefined
450+ integer reg148 (r12_usr): undefined
451+ integer reg149 (r13_usr): undefined
452+ integer reg150 (r14_usr): undefined
453+ integer reg151 (r8_fiq): undefined
454+ integer reg152 (r9_fiq): undefined
455+ integer reg153 (r10_fiq): undefined
456+ integer reg154 (r11_fiq): undefined
457+ integer reg155 (r12_fiq): undefined
458+ integer reg156 (r13_fiq): undefined
459+ integer reg157 (r14_fiq): undefined
460+ integer reg158 (r13_irq): undefined
461+ integer reg159 (r14_irq): undefined
462+ integer reg160 (r13_abt): undefined
463+ integer reg161 (r14_abt): undefined
464+ integer reg162 (r13_und): undefined
465+ integer reg163 (r14_und): undefined
466+ integer reg164 (r13_svc): undefined
467+ integer reg165 (r14_svc): undefined
468+ MMX reg192 (wc0): undefined
469+ MMX reg193 (wc1): undefined
470+ MMX reg194 (wc2): undefined
471+ MMX reg195 (wc3): undefined
472+ MMX reg196 (wc4): undefined
473+ MMX reg197 (wc5): undefined
474+ MMX reg198 (wc6): undefined
475+ MMX reg199 (wc7): undefined
476 VFP reg256 (d0): undefined
477 VFP reg257 (d1): undefined
478 VFP reg258 (d2): undefined
479diff --git a/tests/run-allregs.sh b/tests/run-allregs.sh
480index 1422bd6..dc0fc99 100755
481--- a/tests/run-allregs.sh
482+++ b/tests/run-allregs.sh
354@@ -2672,7 +2672,28 @@ integer registers: 483@@ -2672,7 +2672,28 @@ integer registers:
355 13: sp (sp), address 32 bits 484 13: sp (sp), address 32 bits
356 14: lr (lr), address 32 bits 485 14: lr (lr), address 32 bits
@@ -468,11 +597,11 @@ Index: elfutils-0.175/tests/run-allregs.sh
468 EOF 597 EOF
469 598
470 # See run-readelf-mixed-corenote.sh for instructions to regenerate 599 # See run-readelf-mixed-corenote.sh for instructions to regenerate
471Index: elfutils-0.175/tests/run-readelf-mixed-corenote.sh 600diff --git a/tests/run-readelf-mixed-corenote.sh b/tests/run-readelf-mixed-corenote.sh
472=================================================================== 601index c960f1d..e4bf074 100755
473--- elfutils-0.175.orig/tests/run-readelf-mixed-corenote.sh 602--- a/tests/run-readelf-mixed-corenote.sh
474+++ elfutils-0.175/tests/run-readelf-mixed-corenote.sh 603+++ b/tests/run-readelf-mixed-corenote.sh
475@@ -31,12 +31,11 @@ Note segment of 892 bytes at offset 0x27 604@@ -31,12 +31,11 @@ Note segment of 892 bytes at offset 0x274:
476 pid: 11087, ppid: 11063, pgrp: 11087, sid: 11063 605 pid: 11087, ppid: 11063, pgrp: 11087, sid: 11063
477 utime: 0.000000, stime: 0.010000, cutime: 0.000000, cstime: 0.000000 606 utime: 0.000000, stime: 0.010000, cutime: 0.000000, cstime: 0.000000
478 orig_r0: -1, fpvalid: 1 607 orig_r0: -1, fpvalid: 1
@@ -490,114 +619,3 @@ Index: elfutils-0.175/tests/run-readelf-mixed-corenote.sh
490 CORE 124 PRPSINFO 619 CORE 124 PRPSINFO
491 state: 0, sname: R, zomb: 0, nice: 0, flag: 0x00400500 620 state: 0, sname: R, zomb: 0, nice: 0, flag: 0x00400500
492 uid: 0, gid: 0, pid: 11087, ppid: 11063, pgrp: 11087, sid: 11063 621 uid: 0, gid: 0, pid: 11087, ppid: 11063, pgrp: 11087, sid: 11063
493Index: elfutils-0.175/tests/run-addrcfi.sh
494===================================================================
495--- elfutils-0.175.orig/tests/run-addrcfi.sh
496+++ elfutils-0.175/tests/run-addrcfi.sh
497@@ -3554,6 +3554,38 @@ dwarf_cfi_addrframe (.eh_frame): no matc
498 FPA reg21 (f5): undefined
499 FPA reg22 (f6): undefined
500 FPA reg23 (f7): undefined
501+ VFP reg64 (s0): undefined
502+ VFP reg65 (s1): undefined
503+ VFP reg66 (s2): undefined
504+ VFP reg67 (s3): undefined
505+ VFP reg68 (s4): undefined
506+ VFP reg69 (s5): undefined
507+ VFP reg70 (s6): undefined
508+ VFP reg71 (s7): undefined
509+ VFP reg72 (s8): undefined
510+ VFP reg73 (s9): undefined
511+ VFP reg74 (s10): undefined
512+ VFP reg75 (s11): undefined
513+ VFP reg76 (s12): undefined
514+ VFP reg77 (s13): undefined
515+ VFP reg78 (s14): undefined
516+ VFP reg79 (s15): undefined
517+ VFP reg80 (s16): undefined
518+ VFP reg81 (s17): undefined
519+ VFP reg82 (s18): undefined
520+ VFP reg83 (s19): undefined
521+ VFP reg84 (s20): undefined
522+ VFP reg85 (s21): undefined
523+ VFP reg86 (s22): undefined
524+ VFP reg87 (s23): undefined
525+ VFP reg88 (s24): undefined
526+ VFP reg89 (s25): undefined
527+ VFP reg90 (s26): undefined
528+ VFP reg91 (s27): undefined
529+ VFP reg92 (s28): undefined
530+ VFP reg93 (s29): undefined
531+ VFP reg94 (s30): undefined
532+ VFP reg95 (s31): undefined
533 FPA reg96 (f0): undefined
534 FPA reg97 (f1): undefined
535 FPA reg98 (f2): undefined
536@@ -3562,7 +3594,66 @@ dwarf_cfi_addrframe (.eh_frame): no matc
537 FPA reg101 (f5): undefined
538 FPA reg102 (f6): undefined
539 FPA reg103 (f7): undefined
540- integer reg128 (spsr): undefined
541+ MMX reg104 (wcgr0): undefined
542+ MMX reg105 (wcgr1): undefined
543+ MMX reg106 (wcgr2): undefined
544+ MMX reg107 (wcgr3): undefined
545+ MMX reg108 (wcgr4): undefined
546+ MMX reg109 (wcgr5): undefined
547+ MMX reg110 (wcgr6): undefined
548+ MMX reg111 (wcgr7): undefined
549+ MMX reg112 (wr0): undefined
550+ MMX reg113 (wr1): undefined
551+ MMX reg114 (wr2): undefined
552+ MMX reg115 (wr3): undefined
553+ MMX reg116 (wr4): undefined
554+ MMX reg117 (wr5): undefined
555+ MMX reg118 (wr6): undefined
556+ MMX reg119 (wr7): undefined
557+ MMX reg120 (wr8): undefined
558+ MMX reg121 (wr9): undefined
559+ MMX reg122 (wr10): undefined
560+ MMX reg123 (wr11): undefined
561+ MMX reg124 (wr12): undefined
562+ MMX reg125 (wr13): undefined
563+ MMX reg126 (wr14): undefined
564+ MMX reg127 (wr15): undefined
565+ state reg128 (spsr): undefined
566+ state reg129 (spsr_fiq): undefined
567+ state reg130 (spsr_irq): undefined
568+ state reg131 (spsr_abt): undefined
569+ state reg132 (spsr_und): undefined
570+ state reg133 (spsr_svc): undefined
571+ integer reg144 (r8_usr): undefined
572+ integer reg145 (r9_usr): undefined
573+ integer reg146 (r10_usr): undefined
574+ integer reg147 (r11_usr): undefined
575+ integer reg148 (r12_usr): undefined
576+ integer reg149 (r13_usr): undefined
577+ integer reg150 (r14_usr): undefined
578+ integer reg151 (r8_fiq): undefined
579+ integer reg152 (r9_fiq): undefined
580+ integer reg153 (r10_fiq): undefined
581+ integer reg154 (r11_fiq): undefined
582+ integer reg155 (r12_fiq): undefined
583+ integer reg156 (r13_fiq): undefined
584+ integer reg157 (r14_fiq): undefined
585+ integer reg158 (r13_irq): undefined
586+ integer reg159 (r14_irq): undefined
587+ integer reg160 (r13_abt): undefined
588+ integer reg161 (r14_abt): undefined
589+ integer reg162 (r13_und): undefined
590+ integer reg163 (r14_und): undefined
591+ integer reg164 (r13_svc): undefined
592+ integer reg165 (r14_svc): undefined
593+ MMX reg192 (wc0): undefined
594+ MMX reg193 (wc1): undefined
595+ MMX reg194 (wc2): undefined
596+ MMX reg195 (wc3): undefined
597+ MMX reg196 (wc4): undefined
598+ MMX reg197 (wc5): undefined
599+ MMX reg198 (wc6): undefined
600+ MMX reg199 (wc7): undefined
601 VFP reg256 (d0): undefined
602 VFP reg257 (d1): undefined
603 VFP reg258 (d2): undefined
diff --git a/meta/recipes-devtools/elfutils/files/debian/disable_werror.patch b/meta/recipes-devtools/elfutils/files/debian/disable_werror.patch
index 75736bff08..bb5670a8db 100644
--- a/meta/recipes-devtools/elfutils/files/debian/disable_werror.patch
+++ b/meta/recipes-devtools/elfutils/files/debian/disable_werror.patch
@@ -1,17 +1,24 @@
1From dece09fb8c59dbdab356b63fbe6b7554dd2461a4 Mon Sep 17 00:00:00 2001
1From: Helmut Grohne <helmut@subdivi.de> 2From: Helmut Grohne <helmut@subdivi.de>
2Subject: disable -Werror as it tends to break with new gcc versions 3Date: Fri, 23 Nov 2018 15:47:20 +0800
4Subject: [PATCH] disable -Werror as it tends to break with new gcc versions
5
3Bug-Debian: https://bugs.debian.org/886004 6Bug-Debian: https://bugs.debian.org/886004
4Last-Update: 2018-01-01 7Last-Update: 2018-01-01
5 8
6Upstream-Status: Pending [from debian] 9Upstream-Status: Pending [from debian]
7Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 10Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 11
9Index: elfutils-0.175/config/eu.am 12---
10=================================================================== 13 config/eu.am | 1 -
11--- elfutils-0.175.orig/config/eu.am 14 1 file changed, 1 deletion(-)
12+++ elfutils-0.175/config/eu.am 15
13@@ -73,7 +73,6 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -W 16diff --git a/config/eu.am b/config/eu.am
14 -Wold-style-definition -Wstrict-prototypes \ 17index 82acda3..dede5c6 100644
18--- a/config/eu.am
19+++ b/config/eu.am
20@@ -73,7 +73,6 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
21 -Wold-style-definition -Wstrict-prototypes -Wtrampolines \
15 $(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \ 22 $(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \
16 $(NULL_DEREFERENCE_WARNING) $(IMPLICIT_FALLTHROUGH_WARNING) \ 23 $(NULL_DEREFERENCE_WARNING) $(IMPLICIT_FALLTHROUGH_WARNING) \
17- $(if $($(*F)_no_Werror),,-Werror) \ 24- $(if $($(*F)_no_Werror),,-Werror) \
diff --git a/meta/recipes-devtools/elfutils/files/debian/hppa_backend.diff b/meta/recipes-devtools/elfutils/files/debian/hppa_backend.diff
index 105e3f430d..afcc30abfe 100644
--- a/meta/recipes-devtools/elfutils/files/debian/hppa_backend.diff
+++ b/meta/recipes-devtools/elfutils/files/debian/hppa_backend.diff
@@ -1,10 +1,78 @@
1From 8fe468682c550606ea961a1f996a8618940eb084 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Fri, 16 Jul 2010 12:26:46 +0800
4Subject: [PATCH] elfutils: upgrade to version 0.148
5
1Upstream-Status: Pending [from debian] 6Upstream-Status: Pending [from debian]
2Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 7Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
3 8
4Index: elfutils-0.175/backends/parisc_init.c 9---
5=================================================================== 10 backends/Makefile.am | 8 +-
11 backends/libebl_parisc.h | 9 ++
12 backends/parisc_init.c | 73 +++++++++++++
13 backends/parisc_regs.c | 159 ++++++++++++++++++++++++++++
14 backends/parisc_reloc.def | 128 +++++++++++++++++++++++
15 backends/parisc_retval.c | 213 ++++++++++++++++++++++++++++++++++++++
16 backends/parisc_symbol.c | 113 ++++++++++++++++++++
17 libelf/elf.h | 11 ++
18 8 files changed, 712 insertions(+), 2 deletions(-)
19 create mode 100644 backends/libebl_parisc.h
20 create mode 100644 backends/parisc_init.c
21 create mode 100644 backends/parisc_regs.c
22 create mode 100644 backends/parisc_reloc.def
23 create mode 100644 backends/parisc_retval.c
24 create mode 100644 backends/parisc_symbol.c
25
26diff --git a/backends/Makefile.am b/backends/Makefile.am
27index 2126a2e..5671a32 100644
28--- a/backends/Makefile.am
29+++ b/backends/Makefile.am
30@@ -33,12 +33,13 @@ AM_CPPFLAGS += -I$(top_srcdir)/libebl -I$(top_srcdir)/libasm \
31
32
33 modules = i386 sh x86_64 ia64 alpha arm aarch64 sparc ppc ppc64 s390 \
34- tilegx m68k bpf riscv
35+ tilegx m68k bpf riscv parisc
36 libebl_pic = libebl_i386_pic.a libebl_sh_pic.a libebl_x86_64_pic.a \
37 libebl_ia64_pic.a libebl_alpha_pic.a libebl_arm_pic.a \
38 libebl_aarch64_pic.a libebl_sparc_pic.a libebl_ppc_pic.a \
39 libebl_ppc64_pic.a libebl_s390_pic.a libebl_tilegx_pic.a \
40- libebl_m68k_pic.a libebl_bpf_pic.a libebl_riscv_pic.a
41+ libebl_m68k_pic.a libebl_bpf_pic.a libebl_riscv_pic.a \
42+ libebl_parisc_pic.a
43 noinst_LIBRARIES = $(libebl_pic)
44 noinst_DATA = $(libebl_pic:_pic.a=.so)
45
46@@ -136,6 +137,9 @@ riscv_SRCS = riscv_init.c riscv_symbol.c riscv_cfi.c riscv_regs.c \
47 libebl_riscv_pic_a_SOURCES = $(riscv_SRCS)
48 am_libebl_riscv_pic_a_OBJECTS = $(riscv_SRCS:.c=.os)
49
50+parisc_SRCS = parisc_init.c parisc_symbol.c parisc_regs.c parisc_retval.c
51+libebl_parisc_pic_a_SOURCES = $(parisc_SRCS)
52+am_libebl_parisc_pic_a_OBJECTS = $(parisc_SRCS:.c=.os)
53
54 libebl_%.so libebl_%.map: libebl_%_pic.a $(libelf) $(libdw) $(libeu)
55 @rm -f $(@:.so=.map)
56diff --git a/backends/libebl_parisc.h b/backends/libebl_parisc.h
57new file mode 100644
58index 0000000..f473b79
59--- /dev/null
60+++ b/backends/libebl_parisc.h
61@@ -0,0 +1,9 @@
62+#ifndef _LIBEBL_HPPA_H
63+#define _LIBEBL_HPPA_H 1
64+
65+#include <libdw.h>
66+
67+extern int parisc_return_value_location_32(Dwarf_Die *, const Dwarf_Op **locp);
68+extern int parisc_return_value_location_64(Dwarf_Die *, const Dwarf_Op **locp);
69+
70+#endif
71diff --git a/backends/parisc_init.c b/backends/parisc_init.c
72new file mode 100644
73index 0000000..f1e401c
6--- /dev/null 74--- /dev/null
7+++ elfutils-0.175/backends/parisc_init.c 75+++ b/backends/parisc_init.c
8@@ -0,0 +1,73 @@ 76@@ -0,0 +1,73 @@
9+/* Initialization of PA-RISC specific backend library. 77+/* Initialization of PA-RISC specific backend library.
10+ Copyright (C) 2002, 2005, 2006 Red Hat, Inc. 78+ Copyright (C) 2002, 2005, 2006 Red Hat, Inc.
@@ -79,10 +147,11 @@ Index: elfutils-0.175/backends/parisc_init.c
79+ 147+
80+ return MODVERSION; 148+ return MODVERSION;
81+} 149+}
82Index: elfutils-0.175/backends/parisc_regs.c 150diff --git a/backends/parisc_regs.c b/backends/parisc_regs.c
83=================================================================== 151new file mode 100644
152index 0000000..3895f8e
84--- /dev/null 153--- /dev/null
85+++ elfutils-0.175/backends/parisc_regs.c 154+++ b/backends/parisc_regs.c
86@@ -0,0 +1,159 @@ 155@@ -0,0 +1,159 @@
87+/* Register names and numbers for PA-RISC DWARF. 156+/* Register names and numbers for PA-RISC DWARF.
88+ Copyright (C) 2005, 2006 Red Hat, Inc. 157+ Copyright (C) 2005, 2006 Red Hat, Inc.
@@ -243,10 +312,11 @@ Index: elfutils-0.175/backends/parisc_regs.c
243+ name[namelen++] = '\0'; 312+ name[namelen++] = '\0';
244+ return namelen; 313+ return namelen;
245+} 314+}
246Index: elfutils-0.175/backends/parisc_reloc.def 315diff --git a/backends/parisc_reloc.def b/backends/parisc_reloc.def
247=================================================================== 316new file mode 100644
317index 0000000..1f875ba
248--- /dev/null 318--- /dev/null
249+++ elfutils-0.175/backends/parisc_reloc.def 319+++ b/backends/parisc_reloc.def
250@@ -0,0 +1,128 @@ 320@@ -0,0 +1,128 @@
251+/* List the relocation types for PA-RISC. -*- C -*- 321+/* List the relocation types for PA-RISC. -*- C -*-
252+ Copyright (C) 2005 Red Hat, Inc. 322+ Copyright (C) 2005 Red Hat, Inc.
@@ -376,10 +446,11 @@ Index: elfutils-0.175/backends/parisc_reloc.def
376+RELOC_TYPE (TLS_DTPMOD64, DYN) 446+RELOC_TYPE (TLS_DTPMOD64, DYN)
377+ 447+
378+#define NO_RELATIVE_RELOC 1 448+#define NO_RELATIVE_RELOC 1
379Index: elfutils-0.175/backends/parisc_retval.c 449diff --git a/backends/parisc_retval.c b/backends/parisc_retval.c
380=================================================================== 450new file mode 100644
451index 0000000..df7ec3a
381--- /dev/null 452--- /dev/null
382+++ elfutils-0.175/backends/parisc_retval.c 453+++ b/backends/parisc_retval.c
383@@ -0,0 +1,213 @@ 454@@ -0,0 +1,213 @@
384+/* Function return value location for Linux/PA-RISC ABI. 455+/* Function return value location for Linux/PA-RISC ABI.
385+ Copyright (C) 2005 Red Hat, Inc. 456+ Copyright (C) 2005 Red Hat, Inc.
@@ -594,10 +665,11 @@ Index: elfutils-0.175/backends/parisc_retval.c
594+ return parisc_return_value_location_ (functypedie, locp, 1); 665+ return parisc_return_value_location_ (functypedie, locp, 1);
595+} 666+}
596+ 667+
597Index: elfutils-0.175/backends/parisc_symbol.c 668diff --git a/backends/parisc_symbol.c b/backends/parisc_symbol.c
598=================================================================== 669new file mode 100644
670index 0000000..5754bd8
599--- /dev/null 671--- /dev/null
600+++ elfutils-0.175/backends/parisc_symbol.c 672+++ b/backends/parisc_symbol.c
601@@ -0,0 +1,113 @@ 673@@ -0,0 +1,113 @@
602+/* PA-RISC specific symbolic name handling. 674+/* PA-RISC specific symbolic name handling.
603+ Copyright (C) 2002, 2005 Red Hat, Inc. 675+ Copyright (C) 2002, 2005 Red Hat, Inc.
@@ -712,54 +784,10 @@ Index: elfutils-0.175/backends/parisc_symbol.c
712+ return ELF_T_NUM; 784+ return ELF_T_NUM;
713+ } 785+ }
714+} 786+}
715Index: elfutils-0.175/backends/libebl_parisc.h 787diff --git a/libelf/elf.h b/libelf/elf.h
716=================================================================== 788index 75043bc..6310054 100644
717--- /dev/null 789--- a/libelf/elf.h
718+++ elfutils-0.175/backends/libebl_parisc.h 790+++ b/libelf/elf.h
719@@ -0,0 +1,9 @@
720+#ifndef _LIBEBL_HPPA_H
721+#define _LIBEBL_HPPA_H 1
722+
723+#include <libdw.h>
724+
725+extern int parisc_return_value_location_32(Dwarf_Die *, const Dwarf_Op **locp);
726+extern int parisc_return_value_location_64(Dwarf_Die *, const Dwarf_Op **locp);
727+
728+#endif
729Index: elfutils-0.175/backends/Makefile.am
730===================================================================
731--- elfutils-0.175.orig/backends/Makefile.am
732+++ elfutils-0.175/backends/Makefile.am
733@@ -33,12 +33,13 @@ AM_CPPFLAGS += -I$(top_srcdir)/libebl -I
734
735
736 modules = i386 sh x86_64 ia64 alpha arm aarch64 sparc ppc ppc64 s390 \
737- tilegx m68k bpf riscv
738+ tilegx m68k bpf riscv parisc
739 libebl_pic = libebl_i386_pic.a libebl_sh_pic.a libebl_x86_64_pic.a \
740 libebl_ia64_pic.a libebl_alpha_pic.a libebl_arm_pic.a \
741 libebl_aarch64_pic.a libebl_sparc_pic.a libebl_ppc_pic.a \
742 libebl_ppc64_pic.a libebl_s390_pic.a libebl_tilegx_pic.a \
743- libebl_m68k_pic.a libebl_bpf_pic.a libebl_riscv_pic.a
744+ libebl_m68k_pic.a libebl_bpf_pic.a libebl_riscv_pic.a \
745+ libebl_parisc_pic.a
746 noinst_LIBRARIES = $(libebl_pic)
747 noinst_DATA = $(libebl_pic:_pic.a=.so)
748
749@@ -136,6 +137,9 @@ riscv_SRCS = riscv_init.c riscv_symbol.c
750 libebl_riscv_pic_a_SOURCES = $(riscv_SRCS)
751 am_libebl_riscv_pic_a_OBJECTS = $(riscv_SRCS:.c=.os)
752
753+parisc_SRCS = parisc_init.c parisc_symbol.c parisc_regs.c parisc_retval.c
754+libebl_parisc_pic_a_SOURCES = $(parisc_SRCS)
755+am_libebl_parisc_pic_a_OBJECTS = $(parisc_SRCS:.c=.os)
756
757 libebl_%.so libebl_%.map: libebl_%_pic.a $(libelf) $(libdw) $(libeu)
758 @rm -f $(@:.so=.map)
759Index: elfutils-0.175/libelf/elf.h
760===================================================================
761--- elfutils-0.175.orig/libelf/elf.h
762+++ elfutils-0.175/libelf/elf.h
763@@ -2155,16 +2155,24 @@ enum 791@@ -2155,16 +2155,24 @@ enum
764 #define R_PARISC_PCREL17F 12 /* 17 bits of rel. address. */ 792 #define R_PARISC_PCREL17F 12 /* 17 bits of rel. address. */
765 #define R_PARISC_PCREL14R 14 /* Right 14 bits of rel. address. */ 793 #define R_PARISC_PCREL14R 14 /* Right 14 bits of rel. address. */
diff --git a/meta/recipes-devtools/elfutils/files/debian/hurd_path.patch b/meta/recipes-devtools/elfutils/files/debian/hurd_path.patch
index 8fa35a4523..f014ae2a70 100644
--- a/meta/recipes-devtools/elfutils/files/debian/hurd_path.patch
+++ b/meta/recipes-devtools/elfutils/files/debian/hurd_path.patch
@@ -1,9 +1,19 @@
1From 2f54a8cf959ea83c452b1a22acbc47d2738b5fa0 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Fri, 23 Nov 2018 15:47:20 +0800
4Subject: [PATCH] elfutils: 0.170 -> 0.172
5
1Upstream-Status: Pending [from debian] 6Upstream-Status: Pending [from debian]
2Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 7Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
3Index: elfutils-0.165/tests/run-native-test.sh 8
4=================================================================== 9---
5--- elfutils-0.165.orig/tests/run-native-test.sh 10 tests/run-native-test.sh | 3 +++
6+++ elfutils-0.165/tests/run-native-test.sh 11 1 file changed, 3 insertions(+)
12
13diff --git a/tests/run-native-test.sh b/tests/run-native-test.sh
14index 5351e02..70f6681 100755
15--- a/tests/run-native-test.sh
16+++ b/tests/run-native-test.sh
7@@ -83,6 +83,9 @@ native_test() 17@@ -83,6 +83,9 @@ native_test()
8 # "cannot attach to process: Function not implemented". 18 # "cannot attach to process: Function not implemented".
9 [ "$(uname)" = "GNU/kFreeBSD" ] && exit 77 19 [ "$(uname)" = "GNU/kFreeBSD" ] && exit 77
diff --git a/meta/recipes-devtools/elfutils/files/debian/ignore_strmerge.diff b/meta/recipes-devtools/elfutils/files/debian/ignore_strmerge.diff
index 55513eeddc..53332467a4 100644
--- a/meta/recipes-devtools/elfutils/files/debian/ignore_strmerge.diff
+++ b/meta/recipes-devtools/elfutils/files/debian/ignore_strmerge.diff
@@ -1,8 +1,19 @@
1From d326ad99be856815260a04e573fc97044c02f444 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Mon, 2 Jul 2018 13:57:09 +0800
4Subject: [PATCH] elfutils: 0.170 -> 0.172
5
1Upstream-Status: Pending [from debian] 6Upstream-Status: Pending [from debian]
2Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 7Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
3 8
4--- elfutils-0.165.orig/tests/run-strip-strmerge.sh 9---
5+++ elfutils-0.165/tests/run-strip-strmerge.sh 10 tests/run-strip-strmerge.sh | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/tests/run-strip-strmerge.sh b/tests/run-strip-strmerge.sh
14index aa9c1eb..2bab8ec 100755
15--- a/tests/run-strip-strmerge.sh
16+++ b/tests/run-strip-strmerge.sh
6@@ -30,7 +30,7 @@ remerged=remerged.elf 17@@ -30,7 +30,7 @@ remerged=remerged.elf
7 tempfiles $merged $stripped $debugfile $remerged 18 tempfiles $merged $stripped $debugfile $remerged
8 19
diff --git a/meta/recipes-devtools/elfutils/files/debian/kfreebsd_path.patch b/meta/recipes-devtools/elfutils/files/debian/kfreebsd_path.patch
index fe5159f3c2..805da80d65 100644
--- a/meta/recipes-devtools/elfutils/files/debian/kfreebsd_path.patch
+++ b/meta/recipes-devtools/elfutils/files/debian/kfreebsd_path.patch
@@ -1,7 +1,17 @@
1From bac45996ece75900e0cde97f3889eaf6c1b286f8 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Fri, 23 Nov 2018 15:47:20 +0800
4Subject: [PATCH] elfutils: 0.170 -> 0.172
5
1Upstream-Status: Pending [from debian] 6Upstream-Status: Pending [from debian]
2Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 7Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
3Index: b/tests/run-native-test.sh 8
4=================================================================== 9---
10 tests/run-native-test.sh | 6 ++++++
11 1 file changed, 6 insertions(+)
12
13diff --git a/tests/run-native-test.sh b/tests/run-native-test.sh
14index d19007f..5351e02 100755
5--- a/tests/run-native-test.sh 15--- a/tests/run-native-test.sh
6+++ b/tests/run-native-test.sh 16+++ b/tests/run-native-test.sh
7@@ -77,6 +77,12 @@ native_test() 17@@ -77,6 +77,12 @@ native_test()
diff --git a/meta/recipes-devtools/elfutils/files/debian/mips_backend.diff b/meta/recipes-devtools/elfutils/files/debian/mips_backend.diff
index 998fa04dc8..697306f82b 100644
--- a/meta/recipes-devtools/elfutils/files/debian/mips_backend.diff
+++ b/meta/recipes-devtools/elfutils/files/debian/mips_backend.diff
@@ -1,9 +1,62 @@
1From 10a75fd2beefafe2043163f85426d0e575de58d8 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Fri, 16 Jul 2010 12:26:46 +0800
4Subject: [PATCH] elfutils: upgrade to version 0.148
5
1Upstream-Status: Pending [from debian] 6Upstream-Status: Pending [from debian]
2Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 7Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
3Index: elfutils-0.175/backends/mips_init.c 8
4=================================================================== 9---
10 backends/Makefile.am | 8 +-
11 backends/mips_init.c | 59 ++++++++
12 backends/mips_regs.c | 104 +++++++++++++
13 backends/mips_reloc.def | 79 ++++++++++
14 backends/mips_retval.c | 321 ++++++++++++++++++++++++++++++++++++++++
15 backends/mips_symbol.c | 53 +++++++
16 libebl/eblopenbackend.c | 2 +
17 7 files changed, 624 insertions(+), 2 deletions(-)
18 create mode 100644 backends/mips_init.c
19 create mode 100644 backends/mips_regs.c
20 create mode 100644 backends/mips_reloc.def
21 create mode 100644 backends/mips_retval.c
22 create mode 100644 backends/mips_symbol.c
23
24diff --git a/backends/Makefile.am b/backends/Makefile.am
25index 5671a32..ba84da6 100644
26--- a/backends/Makefile.am
27+++ b/backends/Makefile.am
28@@ -33,13 +33,13 @@ AM_CPPFLAGS += -I$(top_srcdir)/libebl -I$(top_srcdir)/libasm \
29
30
31 modules = i386 sh x86_64 ia64 alpha arm aarch64 sparc ppc ppc64 s390 \
32- tilegx m68k bpf riscv parisc
33+ tilegx m68k bpf riscv parisc mips
34 libebl_pic = libebl_i386_pic.a libebl_sh_pic.a libebl_x86_64_pic.a \
35 libebl_ia64_pic.a libebl_alpha_pic.a libebl_arm_pic.a \
36 libebl_aarch64_pic.a libebl_sparc_pic.a libebl_ppc_pic.a \
37 libebl_ppc64_pic.a libebl_s390_pic.a libebl_tilegx_pic.a \
38 libebl_m68k_pic.a libebl_bpf_pic.a libebl_riscv_pic.a \
39- libebl_parisc_pic.a
40+ libebl_parisc_pic.a libebl_mips_pic.a
41 noinst_LIBRARIES = $(libebl_pic)
42 noinst_DATA = $(libebl_pic:_pic.a=.so)
43
44@@ -141,6 +141,10 @@ parisc_SRCS = parisc_init.c parisc_symbol.c parisc_regs.c parisc_retval.c
45 libebl_parisc_pic_a_SOURCES = $(parisc_SRCS)
46 am_libebl_parisc_pic_a_OBJECTS = $(parisc_SRCS:.c=.os)
47
48+mips_SRCS = mips_init.c mips_symbol.c mips_regs.c mips_retval.c
49+libebl_mips_pic_a_SOURCES = $(mips_SRCS)
50+am_libebl_mips_pic_a_OBJECTS = $(mips_SRCS:.c=.os)
51+
52 libebl_%.so libebl_%.map: libebl_%_pic.a $(libelf) $(libdw) $(libeu)
53 @rm -f $(@:.so=.map)
54 $(AM_V_at)echo 'ELFUTILS_$(PACKAGE_VERSION) { global: $*_init; local: *; };' \
55diff --git a/backends/mips_init.c b/backends/mips_init.c
56new file mode 100644
57index 0000000..975c04e
5--- /dev/null 58--- /dev/null
6+++ elfutils-0.175/backends/mips_init.c 59+++ b/backends/mips_init.c
7@@ -0,0 +1,59 @@ 60@@ -0,0 +1,59 @@
8+/* Initialization of mips specific backend library. 61+/* Initialization of mips specific backend library.
9+ Copyright (C) 2006 Red Hat, Inc. 62+ Copyright (C) 2006 Red Hat, Inc.
@@ -64,10 +117,11 @@ Index: elfutils-0.175/backends/mips_init.c
64+ 117+
65+ return MODVERSION; 118+ return MODVERSION;
66+} 119+}
67Index: elfutils-0.175/backends/mips_regs.c 120diff --git a/backends/mips_regs.c b/backends/mips_regs.c
68=================================================================== 121new file mode 100644
122index 0000000..44f86cb
69--- /dev/null 123--- /dev/null
70+++ elfutils-0.175/backends/mips_regs.c 124+++ b/backends/mips_regs.c
71@@ -0,0 +1,104 @@ 125@@ -0,0 +1,104 @@
72+/* Register names and numbers for MIPS DWARF. 126+/* Register names and numbers for MIPS DWARF.
73+ Copyright (C) 2006 Red Hat, Inc. 127+ Copyright (C) 2006 Red Hat, Inc.
@@ -173,10 +227,11 @@ Index: elfutils-0.175/backends/mips_regs.c
173+ name[namelen++] = '\0'; 227+ name[namelen++] = '\0';
174+ return namelen; 228+ return namelen;
175+} 229+}
176Index: elfutils-0.175/backends/mips_reloc.def 230diff --git a/backends/mips_reloc.def b/backends/mips_reloc.def
177=================================================================== 231new file mode 100644
232index 0000000..4579970
178--- /dev/null 233--- /dev/null
179+++ elfutils-0.175/backends/mips_reloc.def 234+++ b/backends/mips_reloc.def
180@@ -0,0 +1,79 @@ 235@@ -0,0 +1,79 @@
181+/* List the relocation types for mips. -*- C -*- 236+/* List the relocation types for mips. -*- C -*-
182+ Copyright (C) 2006 Red Hat, Inc. 237+ Copyright (C) 2006 Red Hat, Inc.
@@ -257,10 +312,11 @@ Index: elfutils-0.175/backends/mips_reloc.def
257+ 312+
258+#define NO_COPY_RELOC 1 313+#define NO_COPY_RELOC 1
259+#define NO_RELATIVE_RELOC 1 314+#define NO_RELATIVE_RELOC 1
260Index: elfutils-0.175/backends/mips_retval.c 315diff --git a/backends/mips_retval.c b/backends/mips_retval.c
261=================================================================== 316new file mode 100644
317index 0000000..656cd1f
262--- /dev/null 318--- /dev/null
263+++ elfutils-0.175/backends/mips_retval.c 319+++ b/backends/mips_retval.c
264@@ -0,0 +1,321 @@ 320@@ -0,0 +1,321 @@
265+/* Function return value location for Linux/mips ABI. 321+/* Function return value location for Linux/mips ABI.
266+ Copyright (C) 2005 Red Hat, Inc. 322+ Copyright (C) 2005 Red Hat, Inc.
@@ -583,10 +639,11 @@ Index: elfutils-0.175/backends/mips_retval.c
583+ DWARF and might be valid. */ 639+ DWARF and might be valid. */
584+ return -2; 640+ return -2;
585+} 641+}
586Index: elfutils-0.175/backends/mips_symbol.c 642diff --git a/backends/mips_symbol.c b/backends/mips_symbol.c
587=================================================================== 643new file mode 100644
644index 0000000..261b05d
588--- /dev/null 645--- /dev/null
589+++ elfutils-0.175/backends/mips_symbol.c 646+++ b/backends/mips_symbol.c
590@@ -0,0 +1,53 @@ 647@@ -0,0 +1,53 @@
591+/* MIPS specific symbolic name handling. 648+/* MIPS specific symbolic name handling.
592+ Copyright (C) 2002, 2003, 2005 Red Hat, Inc. 649+ Copyright (C) 2002, 2003, 2005 Red Hat, Inc.
@@ -641,10 +698,10 @@ Index: elfutils-0.175/backends/mips_symbol.c
641+ return ELF_T_NUM; 698+ return ELF_T_NUM;
642+ } 699+ }
643+} 700+}
644Index: elfutils-0.175/libebl/eblopenbackend.c 701diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c
645=================================================================== 702index d54b720..6cf766f 100644
646--- elfutils-0.175.orig/libebl/eblopenbackend.c 703--- a/libebl/eblopenbackend.c
647+++ elfutils-0.175/libebl/eblopenbackend.c 704+++ b/libebl/eblopenbackend.c
648@@ -71,6 +71,8 @@ static const struct 705@@ -71,6 +71,8 @@ static const struct
649 { "sparc", "elf_sparc", "sparc", 5, EM_SPARC, 0, 0 }, 706 { "sparc", "elf_sparc", "sparc", 5, EM_SPARC, 0, 0 },
650 { "sparc", "elf_sparcv8plus", "sparc", 5, EM_SPARC32PLUS, 0, 0 }, 707 { "sparc", "elf_sparcv8plus", "sparc", 5, EM_SPARC32PLUS, 0, 0 },
@@ -654,34 +711,3 @@ Index: elfutils-0.175/libebl/eblopenbackend.c
654 711
655 { "m32", "elf_m32", "m32", 3, EM_M32, 0, 0 }, 712 { "m32", "elf_m32", "m32", 3, EM_M32, 0, 0 },
656 { "m68k", "elf_m68k", "m68k", 4, EM_68K, ELFCLASS32, ELFDATA2MSB }, 713 { "m68k", "elf_m68k", "m68k", 4, EM_68K, ELFCLASS32, ELFDATA2MSB },
657Index: elfutils-0.175/backends/Makefile.am
658===================================================================
659--- elfutils-0.175.orig/backends/Makefile.am
660+++ elfutils-0.175/backends/Makefile.am
661@@ -33,13 +33,13 @@ AM_CPPFLAGS += -I$(top_srcdir)/libebl -I
662
663
664 modules = i386 sh x86_64 ia64 alpha arm aarch64 sparc ppc ppc64 s390 \
665- tilegx m68k bpf riscv parisc
666+ tilegx m68k bpf riscv parisc mips
667 libebl_pic = libebl_i386_pic.a libebl_sh_pic.a libebl_x86_64_pic.a \
668 libebl_ia64_pic.a libebl_alpha_pic.a libebl_arm_pic.a \
669 libebl_aarch64_pic.a libebl_sparc_pic.a libebl_ppc_pic.a \
670 libebl_ppc64_pic.a libebl_s390_pic.a libebl_tilegx_pic.a \
671 libebl_m68k_pic.a libebl_bpf_pic.a libebl_riscv_pic.a \
672- libebl_parisc_pic.a
673+ libebl_parisc_pic.a libebl_mips_pic.a
674 noinst_LIBRARIES = $(libebl_pic)
675 noinst_DATA = $(libebl_pic:_pic.a=.so)
676
677@@ -141,6 +141,10 @@ parisc_SRCS = parisc_init.c parisc_symbo
678 libebl_parisc_pic_a_SOURCES = $(parisc_SRCS)
679 am_libebl_parisc_pic_a_OBJECTS = $(parisc_SRCS:.c=.os)
680
681+mips_SRCS = mips_init.c mips_symbol.c mips_regs.c mips_retval.c
682+libebl_mips_pic_a_SOURCES = $(mips_SRCS)
683+am_libebl_mips_pic_a_OBJECTS = $(mips_SRCS:.c=.os)
684+
685 libebl_%.so libebl_%.map: libebl_%_pic.a $(libelf) $(libdw) $(libeu)
686 @rm -f $(@:.so=.map)
687 $(AM_V_at)echo 'ELFUTILS_$(PACKAGE_VERSION) { global: $*_init; local: *; };' \
diff --git a/meta/recipes-devtools/elfutils/files/debian/mips_readelf_w.patch b/meta/recipes-devtools/elfutils/files/debian/mips_readelf_w.patch
index d26e72e28c..1737e0dbcc 100644
--- a/meta/recipes-devtools/elfutils/files/debian/mips_readelf_w.patch
+++ b/meta/recipes-devtools/elfutils/files/debian/mips_readelf_w.patch
@@ -1,7 +1,7 @@
1From 33da4b4347aacdfb8b1b42e06e29e68a4b882d96 Mon Sep 17 00:00:00 2001
1From: Kurt Roeckx <kurt@roeckx.be> 2From: Kurt Roeckx <kurt@roeckx.be>
2Subject: Make readelf -w output debug information on mips 3Date: Mon, 4 Mar 2019 09:45:00 +0000
3Bug-Debian: http://bugs.debian.org/662041 4Subject: [PATCH] Make readelf -w output debug information on mips
4Forwarded: not-needed
5 5
6Upstreams wants a change where this is handled by a hook that needs 6Upstreams wants a change where this is handled by a hook that needs
7to be filled in by the backend for the arch. 7to be filled in by the backend for the arch.
@@ -9,11 +9,15 @@ to be filled in by the backend for the arch.
9Upstream-Status: Pending [from debian] 9Upstream-Status: Pending [from debian]
10Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 10Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 11
12Index: elfutils-0.175/src/readelf.c 12---
13=================================================================== 13 src/readelf.c | 3 ++-
14--- elfutils-0.175.orig/src/readelf.c 14 1 file changed, 2 insertions(+), 1 deletion(-)
15+++ elfutils-0.175/src/readelf.c 15
16@@ -11133,7 +11133,8 @@ print_debug (Dwfl_Module *dwflmod, Ebl * 16diff --git a/src/readelf.c b/src/readelf.c
17index 33706bd..ef13159 100644
18--- a/src/readelf.c
19+++ b/src/readelf.c
20@@ -11148,7 +11148,8 @@ print_debug (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr)
17 GElf_Shdr shdr_mem; 21 GElf_Shdr shdr_mem;
18 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); 22 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
19 23