summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/elfutils/files/debian
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2020-01-14 14:59:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-16 22:33:09 +0000
commite2848469adc841299c9067ba8183b3a7c0c20b57 (patch)
tree9f0b5576ff50d7009a5138fab3a2a2b149f8e1b1 /meta/recipes-devtools/elfutils/files/debian
parent83b900fec5e07414b0f06fc1ecc11ed145cc19d5 (diff)
downloadpoky-e2848469adc841299c9067ba8183b3a7c0c20b57.tar.gz
elfutils: upgrade 0.177 -> 0.178
Remove 0007-Fix-control-path-where-we-have-str-as-uninitialized-.patch as issue fixed upstream. Rebase other patches. Adjust ptests, pass rate is now 100% again: ====================== All 206 tests passed (6 tests were not run) ====================== (From OE-Core rev: dce25738c82335f2a92b32bd52f0c63e2dbd336e) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/elfutils/files/debian')
-rw-r--r--meta/recipes-devtools/elfutils/files/debian/hppa_backend.diff51
-rw-r--r--meta/recipes-devtools/elfutils/files/debian/mips_backend.diff85
-rw-r--r--meta/recipes-devtools/elfutils/files/debian/mips_cfi.patch22
3 files changed, 80 insertions, 78 deletions
diff --git a/meta/recipes-devtools/elfutils/files/debian/hppa_backend.diff b/meta/recipes-devtools/elfutils/files/debian/hppa_backend.diff
index 4460d582c7..53fa2f435b 100644
--- a/meta/recipes-devtools/elfutils/files/debian/hppa_backend.diff
+++ b/meta/recipes-devtools/elfutils/files/debian/hppa_backend.diff
@@ -1,4 +1,4 @@
1From 8efad9105b38985bea373416ae8fcacf21d1d129 Mon Sep 17 00:00:00 2001 1From ffb811e18d7046d5bbe54ede5b1b7e14eaac0146 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Wed, 21 Aug 2019 15:44:18 +0800 3Date: Wed, 21 Aug 2019 15:44:18 +0800
4Subject: [PATCH] hppa backend 4Subject: [PATCH] hppa backend
@@ -6,15 +6,16 @@ Subject: [PATCH] hppa backend
6Rebase to 0.177 6Rebase to 0.177
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/Makefile.am | 7 +- 11 backends/Makefile.am | 7 +-
11 backends/libebl_parisc.h | 9 ++ 12 backends/libebl_parisc.h | 9 ++
12 backends/parisc_init.c | 73 ++++++++++++++++ 13 backends/parisc_init.c | 73 +++++++++++++
13 backends/parisc_regs.c | 159 ++++++++++++++++++++++++++++++++++ 14 backends/parisc_regs.c | 159 ++++++++++++++++++++++++++++
14 backends/parisc_reloc.def | 128 ++++++++++++++++++++++++++++ 15 backends/parisc_reloc.def | 128 +++++++++++++++++++++++
15 backends/parisc_retval.c | 213 ++++++++++++++++++++++++++++++++++++++++++++++ 16 backends/parisc_retval.c | 213 ++++++++++++++++++++++++++++++++++++++
16 backends/parisc_symbol.c | 113 ++++++++++++++++++++++++ 17 backends/parisc_symbol.c | 113 ++++++++++++++++++++
17 libelf/elf.h | 11 +++ 18 libelf/elf.h | 11 ++
18 8 files changed, 711 insertions(+), 2 deletions(-) 19 8 files changed, 711 insertions(+), 2 deletions(-)
19 create mode 100644 backends/libebl_parisc.h 20 create mode 100644 backends/libebl_parisc.h
20 create mode 100644 backends/parisc_init.c 21 create mode 100644 backends/parisc_init.c
@@ -24,31 +25,30 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
24 create mode 100644 backends/parisc_symbol.c 25 create mode 100644 backends/parisc_symbol.c
25 26
26diff --git a/backends/Makefile.am b/backends/Makefile.am 27diff --git a/backends/Makefile.am b/backends/Makefile.am
27index 175468f..91a38e2 100644 28index f405212..4755f61 100644
28--- a/backends/Makefile.am 29--- a/backends/Makefile.am
29+++ b/backends/Makefile.am 30+++ b/backends/Makefile.am
30@@ -33,16 +33,19 @@ AM_CPPFLAGS += -I$(top_srcdir)/libebl -I$(top_srcdir)/libasm \ 31@@ -37,7 +37,9 @@ AM_CPPFLAGS += -I$(top_srcdir)/libebl -I$(top_srcdir)/libasm \
31 32 noinst_LIBRARIES = libebl_backends.a libebl_backends_pic.a
32 33
33 modules = i386 sh x86_64 ia64 alpha arm aarch64 sparc ppc ppc64 s390 \ 34 modules = i386 sh x86_64 ia64 alpha arm aarch64 sparc ppc ppc64 s390 \
34- tilegx m68k bpf riscv csky 35- tilegx m68k bpf riscv csky
35+ tilegx m68k bpf riscv csky parisc 36+ tilegx m68k bpf riscv csky parisc
36 libebl_pic = libebl_i386_pic.a libebl_sh_pic.a libebl_x86_64_pic.a \ 37+
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_csky_pic.a
42+ libebl_csky_pic.a libebl_parisc_pic.a
43 noinst_LIBRARIES = $(libebl_pic)
44 noinst_DATA = $(libebl_pic:_pic.a=.so)
45
46+parisc_SRCS = parisc_init.c parisc_symbol.c parisc_regs.c parisc_retval.c 38+parisc_SRCS = parisc_init.c parisc_symbol.c parisc_regs.c parisc_retval.c
47+libebl_parisc_pic_a_SOURCES = $(parisc_SRCS)
48+am_libebl_parisc_pic_a_OBJECTS = $(parisc_SRCS:.c=.os)
49 39
50 libelf = ../libelf/libelf.so 40 i386_SRCS = i386_init.c i386_symbol.c i386_corenote.c i386_cfi.c \
51 libdw = ../libdw/libdw.so 41 i386_retval.c i386_regs.c i386_auxv.c i386_syscall.c \
42@@ -102,7 +104,8 @@ libebl_backends_a_SOURCES = $(i386_SRCS) $(sh_SRCS) $(x86_64_SRCS) \
43 $(ia64_SRCS) $(alpha_SRCS) $(arm_SRCS) \
44 $(aarch64_SRCS) $(sparc_SRCS) $(ppc_SRCS) \
45 $(ppc64_SRCS) $(s390_SRCS) $(tilegx_SRCS) \
46- $(m68k_SRCS) $(bpf_SRCS) $(riscv_SRCS) $(csky_SRCS)
47+ $(m68k_SRCS) $(bpf_SRCS) $(riscv_SRCS) $(csky_SRCS) \
48+ $(parisc_SRCS)
49
50 libebl_backends_pic_a_SOURCES =
51 am_libebl_backends_pic_a_OBJECTS = $(libebl_backends_a_SOURCES:.c=.os)
52diff --git a/backends/libebl_parisc.h b/backends/libebl_parisc.h 52diff --git a/backends/libebl_parisc.h b/backends/libebl_parisc.h
53new file mode 100644 53new file mode 100644
54index 0000000..f473b79 54index 0000000..f473b79
@@ -826,6 +826,3 @@ index 01648bd..218ceb2 100644
826 #define R_PARISC_SEGREL64 112 /* 64 bits segment rel. address. */ 826 #define R_PARISC_SEGREL64 112 /* 64 bits segment rel. address. */
827 #define R_PARISC_PLTOFF14WR 115 /* PLT-rel. address, right 14 bits. */ 827 #define R_PARISC_PLTOFF14WR 115 /* PLT-rel. address, right 14 bits. */
828 #define R_PARISC_PLTOFF14DR 116 /* PLT-rel. address, right 14 bits. */ 828 #define R_PARISC_PLTOFF14DR 116 /* PLT-rel. address, right 14 bits. */
829--
8302.7.4
831
diff --git a/meta/recipes-devtools/elfutils/files/debian/mips_backend.diff b/meta/recipes-devtools/elfutils/files/debian/mips_backend.diff
index 1097b0ec6f..749faa403f 100644
--- a/meta/recipes-devtools/elfutils/files/debian/mips_backend.diff
+++ b/meta/recipes-devtools/elfutils/files/debian/mips_backend.diff
@@ -1,4 +1,4 @@
1From 68b497668cde5171880d073a7ea50d11c3bddbfc Mon Sep 17 00:00:00 2001 1From 7e0b036d087dfff7f5e306f52fc78745f99454c3 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Wed, 21 Aug 2019 15:49:52 +0800 3Date: Wed, 21 Aug 2019 15:49:52 +0800
4Subject: [PATCH] mips backend 4Subject: [PATCH] mips backend
@@ -7,15 +7,16 @@ Rebase to 0.177
7Upstream-Status: Pending [from debian] 7Upstream-Status: Pending [from debian]
8 8
9Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 9Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
10
10--- 11---
11 backends/Makefile.am | 8 +- 12 backends/Makefile.am | 6 +-
12 backends/mips_init.c | 59 +++++++++ 13 backends/mips_init.c | 59 ++++++++
13 backends/mips_regs.c | 104 ++++++++++++++++ 14 backends/mips_regs.c | 104 +++++++++++++
14 backends/mips_reloc.def | 79 ++++++++++++ 15 backends/mips_reloc.def | 79 ++++++++++
15 backends/mips_retval.c | 321 ++++++++++++++++++++++++++++++++++++++++++++++++ 16 backends/mips_retval.c | 321 ++++++++++++++++++++++++++++++++++++++++
16 backends/mips_symbol.c | 53 ++++++++ 17 backends/mips_symbol.c | 53 +++++++
17 libebl/eblopenbackend.c | 2 + 18 libebl/eblopenbackend.c | 3 +
18 7 files changed, 624 insertions(+), 2 deletions(-) 19 7 files changed, 623 insertions(+), 2 deletions(-)
19 create mode 100644 backends/mips_init.c 20 create mode 100644 backends/mips_init.c
20 create mode 100644 backends/mips_regs.c 21 create mode 100644 backends/mips_regs.c
21 create mode 100644 backends/mips_reloc.def 22 create mode 100644 backends/mips_reloc.def
@@ -23,36 +24,34 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
23 create mode 100644 backends/mips_symbol.c 24 create mode 100644 backends/mips_symbol.c
24 25
25diff --git a/backends/Makefile.am b/backends/Makefile.am 26diff --git a/backends/Makefile.am b/backends/Makefile.am
26index 91a38e2..aba8a4a 100644 27index 4755f61..07d45d7 100644
27--- a/backends/Makefile.am 28--- a/backends/Makefile.am
28+++ b/backends/Makefile.am 29+++ b/backends/Makefile.am
29@@ -33,13 +33,13 @@ AM_CPPFLAGS += -I$(top_srcdir)/libebl -I$(top_srcdir)/libasm \ 30@@ -37,7 +37,7 @@ AM_CPPFLAGS += -I$(top_srcdir)/libebl -I$(top_srcdir)/libasm \
30 31 noinst_LIBRARIES = libebl_backends.a libebl_backends_pic.a
31 32
32 modules = i386 sh x86_64 ia64 alpha arm aarch64 sparc ppc ppc64 s390 \ 33 modules = i386 sh x86_64 ia64 alpha arm aarch64 sparc ppc ppc64 s390 \
33- tilegx m68k bpf riscv csky parisc 34- tilegx m68k bpf riscv csky parisc
34+ tilegx m68k bpf riscv csky parisc mips 35+ tilegx m68k bpf riscv csky parisc mips
35 libebl_pic = libebl_i386_pic.a libebl_sh_pic.a libebl_x86_64_pic.a \
36 libebl_ia64_pic.a libebl_alpha_pic.a libebl_arm_pic.a \
37 libebl_aarch64_pic.a libebl_sparc_pic.a libebl_ppc_pic.a \
38 libebl_ppc64_pic.a libebl_s390_pic.a libebl_tilegx_pic.a \
39 libebl_m68k_pic.a libebl_bpf_pic.a libebl_riscv_pic.a \
40- libebl_csky_pic.a libebl_parisc_pic.a
41+ libebl_csky_pic.a libebl_parisc_pic.a libebl_mips_pic.a
42 noinst_LIBRARIES = $(libebl_pic)
43 noinst_DATA = $(libebl_pic:_pic.a=.so)
44 36
45@@ -145,6 +145,10 @@ csky_SRCS = csky_attrs.c csky_init.c csky_symbol.c csky_cfi.c \ 37 parisc_SRCS = parisc_init.c parisc_symbol.c parisc_regs.c parisc_retval.c
46 libebl_csky_pic_a_SOURCES = $(csky_SRCS) 38
47 am_libebl_csky_pic_a_OBJECTS = $(csky_SRCS:.c=.os) 39@@ -100,12 +100,14 @@ riscv_SRCS = riscv_init.c riscv_symbol.c riscv_cfi.c riscv_regs.c \
40 csky_SRCS = csky_attrs.c csky_init.c csky_symbol.c csky_cfi.c \
41 csky_regs.c csky_initreg.c csky_corenote.c
48 42
49+mips_SRCS = mips_init.c mips_symbol.c mips_regs.c mips_retval.c 43+mips_SRCS = mips_init.c mips_symbol.c mips_regs.c mips_retval.c
50+libebl_mips_pic_a_SOURCES = $(mips_SRCS)
51+am_libebl_mips_pic_a_OBJECTS = $(mips_SRCS:.c=.os)
52+ 44+
53 libebl_%.so libebl_%.map: libebl_%_pic.a $(libelf) $(libdw) $(libeu) 45 libebl_backends_a_SOURCES = $(i386_SRCS) $(sh_SRCS) $(x86_64_SRCS) \
54 @rm -f $(@:.so=.map) 46 $(ia64_SRCS) $(alpha_SRCS) $(arm_SRCS) \
55 $(AM_V_at)echo 'ELFUTILS_$(PACKAGE_VERSION) { global: $*_init; local: *; };' \ 47 $(aarch64_SRCS) $(sparc_SRCS) $(ppc_SRCS) \
48 $(ppc64_SRCS) $(s390_SRCS) $(tilegx_SRCS) \
49 $(m68k_SRCS) $(bpf_SRCS) $(riscv_SRCS) $(csky_SRCS) \
50- $(parisc_SRCS)
51+ $(parisc_SRCS) $(mips_SRCS)
52
53 libebl_backends_pic_a_SOURCES =
54 am_libebl_backends_pic_a_OBJECTS = $(libebl_backends_a_SOURCES:.c=.os)
56diff --git a/backends/mips_init.c b/backends/mips_init.c 55diff --git a/backends/mips_init.c b/backends/mips_init.c
57new file mode 100644 56new file mode 100644
58index 0000000..975c04e 57index 0000000..975c04e
@@ -700,18 +699,26 @@ index 0000000..261b05d
700+ } 699+ }
701+} 700+}
702diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c 701diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c
703index 01711f5..d0c3589 100644 702index 210b47e..1feac13 100644
704--- a/libebl/eblopenbackend.c 703--- a/libebl/eblopenbackend.c
705+++ b/libebl/eblopenbackend.c 704+++ b/libebl/eblopenbackend.c
706@@ -71,6 +71,8 @@ static const struct 705@@ -57,6 +57,7 @@ const char *m68k_init (Elf *, GElf_Half, Ebl *, size_t);
707 { "sparc", "elf_sparc", "sparc", 5, EM_SPARC, 0, 0 }, 706 const char *bpf_init (Elf *, GElf_Half, Ebl *, size_t);
708 { "sparc", "elf_sparcv8plus", "sparc", 5, EM_SPARC32PLUS, 0, 0 }, 707 const char *riscv_init (Elf *, GElf_Half, Ebl *, size_t);
709 { "s390", "ebl_s390", "s390", 4, EM_S390, 0, 0 }, 708 const char *csky_init (Elf *, GElf_Half, Ebl *, size_t);
710+ { "mips", "elf_mips", "mips", 4, EM_MIPS, 0, 0 }, 709+const char *mips_init (Elf *, GElf_Half, Ebl *, size_t);
711+ { "mips", "elf_mipsel", "mipsel", 4, EM_MIPS_RS3_LE, 0, 0 }, 710
711 /* This table should contain the complete list of architectures as far
712 as the ELF specification is concerned. */
713@@ -87,6 +88,8 @@ static const struct
714 { sparc_init, "elf_sparc", "sparc", 5, EM_SPARC, 0, 0 },
715 { sparc_init, "elf_sparcv8plus", "sparc", 5, EM_SPARC32PLUS, 0, 0 },
716 { s390_init, "ebl_s390", "s390", 4, EM_S390, 0, 0 },
717+ { mips_init, "elf_mips", "mips", 4, EM_MIPS, 0, 0 },
718+ { mips_init, "elf_mipsel", "mipsel", 4, EM_MIPS_RS3_LE, 0, 0 },
712 719
713 { "m32", "elf_m32", "m32", 3, EM_M32, 0, 0 }, 720 { NULL, "elf_m32", "m32", 3, EM_M32, 0, 0 },
714 { "m68k", "elf_m68k", "m68k", 4, EM_68K, ELFCLASS32, ELFDATA2MSB }, 721 { m68k_init, "elf_m68k", "m68k", 4, EM_68K, ELFCLASS32, ELFDATA2MSB },
715-- 722--
7162.7.4 7232.17.1
717 724
diff --git a/meta/recipes-devtools/elfutils/files/debian/mips_cfi.patch b/meta/recipes-devtools/elfutils/files/debian/mips_cfi.patch
index fda4f68059..dd8f88a454 100644
--- a/meta/recipes-devtools/elfutils/files/debian/mips_cfi.patch
+++ b/meta/recipes-devtools/elfutils/files/debian/mips_cfi.patch
@@ -1,33 +1,34 @@
1From 96e38289f2887ddb8e6d2fb91ea04bdbdf034ab5 Mon Sep 17 00:00:00 2001 1From 5bf6117a6eaf9007ce80adbb8b66a95ca98047a4 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Wed, 21 Aug 2019 17:00:30 +0800 3Date: Wed, 21 Aug 2019 17:00:30 +0800
4Subject: [PATCH 2/2] mips_cfi 4Subject: [PATCH] mips_cfi
5 5
6Upstream-Status: Pending [from debian] 6Upstream-Status: Pending [from debian]
7 7
8Rebase to 0.177 8Rebase to 0.177
9 9
10Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 10Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11
11--- 12---
12 backends/Makefile.am | 2 +- 13 backends/Makefile.am | 2 +-
13 backends/mips_cfi.c | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 14 backends/mips_cfi.c | 80 ++++++++++++++++++++++++++++++++++++++++++++
14 backends/mips_init.c | 1 + 15 backends/mips_init.c | 1 +
15 3 files changed, 82 insertions(+), 1 deletion(-) 16 3 files changed, 82 insertions(+), 1 deletion(-)
16 create mode 100644 backends/mips_cfi.c 17 create mode 100644 backends/mips_cfi.c
17 18
18diff --git a/backends/Makefile.am b/backends/Makefile.am 19diff --git a/backends/Makefile.am b/backends/Makefile.am
19index aba8a4a..6ac0eec 100644 20index 07d45d7..dec3080 100644
20--- a/backends/Makefile.am 21--- a/backends/Makefile.am
21+++ b/backends/Makefile.am 22+++ b/backends/Makefile.am
22@@ -145,7 +145,7 @@ csky_SRCS = csky_attrs.c csky_init.c csky_symbol.c csky_cfi.c \ 23@@ -100,7 +100,7 @@ riscv_SRCS = riscv_init.c riscv_symbol.c riscv_cfi.c riscv_regs.c \
23 libebl_csky_pic_a_SOURCES = $(csky_SRCS) 24 csky_SRCS = csky_attrs.c csky_init.c csky_symbol.c csky_cfi.c \
24 am_libebl_csky_pic_a_OBJECTS = $(csky_SRCS:.c=.os) 25 csky_regs.c csky_initreg.c csky_corenote.c
25 26
26-mips_SRCS = mips_init.c mips_symbol.c mips_regs.c mips_retval.c 27-mips_SRCS = mips_init.c mips_symbol.c mips_regs.c mips_retval.c
27+mips_SRCS = mips_init.c mips_symbol.c mips_regs.c mips_retval.c mips_cfi.c 28+mips_SRCS = mips_init.c mips_symbol.c mips_regs.c mips_retval.c mips_cfi.c
28 libebl_mips_pic_a_SOURCES = $(mips_SRCS)
29 am_libebl_mips_pic_a_OBJECTS = $(mips_SRCS:.c=.os)
30 29
30 libebl_backends_a_SOURCES = $(i386_SRCS) $(sh_SRCS) $(x86_64_SRCS) \
31 $(ia64_SRCS) $(alpha_SRCS) $(arm_SRCS) \
31diff --git a/backends/mips_cfi.c b/backends/mips_cfi.c 32diff --git a/backends/mips_cfi.c b/backends/mips_cfi.c
32new file mode 100644 33new file mode 100644
33index 0000000..9ffdab5 34index 0000000..9ffdab5
@@ -126,6 +127,3 @@ index 8482e7f..bce5abe 100644
126 127
127 return MODVERSION; 128 return MODVERSION;
128 } 129 }
129--
1302.7.4
131