1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 12:29:55 +00:00

elfutils: 0.176 -> 0.177

- Update Debian patches
  http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.176-1.debian.tar.xz

- Rebase Debian patches to 0.177
  debian/hppa_backend.diff
  debian/mips_backend.diff
  debian/arm_backend.diff
  debian/mips_readelf_w.patch
  debian/testsuite-ignore-elflint.diff
  debian/mips_cfi.patch

- Fix build failure while applying debian patches
  0001-fix-compile-failure-with-debian-patches.patch

- Rebase musl patches

(From OE-Core rev: 35143611034758cc670e9d88bc93f97fe33c52fc)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Hongxu Jia
2019-08-23 11:02:10 +08:00
committed by Richard Purdie
parent 5b1e999c41
commit cc5d6ca85a
18 changed files with 431 additions and 190 deletions
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
DEPENDS = "libtool bzip2 zlib virtual/libintl" DEPENDS = "libtool bzip2 zlib virtual/libintl"
DEPENDS_append_libc-musl = " argp-standalone fts musl-obstack " DEPENDS_append_libc-musl = " argp-standalone fts musl-obstack "
# The Debian patches below are from: # The Debian patches below are from:
# http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.175-1.debian.tar.xz # http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.176-1.debian.tar.xz
SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \ SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \
file://0001-dso-link-change.patch \ file://0001-dso-link-change.patch \
file://0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch \ file://0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch \
@@ -28,6 +28,8 @@ SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \
file://debian/ignore_strmerge.diff \ file://debian/ignore_strmerge.diff \
file://debian/disable_werror.patch \ file://debian/disable_werror.patch \
file://debian/testsuite-ignore-elflint.diff \ file://debian/testsuite-ignore-elflint.diff \
file://debian/mips_cfi.patch \
file://debian/0001-fix-compile-failure-with-debian-patches.patch \
file://0001-skip-the-test-when-gcc-not-deployed.patch \ file://0001-skip-the-test-when-gcc-not-deployed.patch \
file://run-ptest \ file://run-ptest \
file://ptest.patch \ file://ptest.patch \
@@ -38,8 +40,8 @@ SRC_URI_append_libc-musl = " \
file://musl-utils.patch \ file://musl-utils.patch \
file://musl-tests.patch \ file://musl-tests.patch \
" "
SRC_URI[md5sum] = "077e4f49320cad82bf17a997068b1db9" SRC_URI[md5sum] = "0b583722f911e1632544718d502aab87"
SRC_URI[sha256sum] = "eb5747c371b0af0f71e86215a5ebb88728533c3a104a43d4231963f308cd1023" SRC_URI[sha256sum] = "fa489deccbcae7d8c920f60d85906124c1989c591196d90e0fd668e3dc05042e"
inherit autotools gettext ptest inherit autotools gettext ptest
@@ -1,25 +1,25 @@
From 46d2c2f8fecad85baeed9fe211f5285820220442 Mon Sep 17 00:00:00 2001 From 77cb4a53c270d5854d3af24f19547bc3de825233 Mon Sep 17 00:00:00 2001
From: James Cowgill <james410@cowgill.org.uk> From: James Cowgill <james410@cowgill.org.uk>
Date: Mon, 5 Jan 2015 15:16:58 +0000 Date: Mon, 5 Jan 2015 15:16:58 +0000
Subject: [PATCH] Ignore differences between mips machine identifiers Subject: [PATCH 1/3] Ignore differences between mips machine identifiers
Little endian binaries actually use EM_MIPS so you can't tell the endianness Little endian binaries actually use EM_MIPS so you can't tell the endianness
from the elf machine id. Also, the EM_MIPS_RS3_LE machine is dead anyway (the from the elf machine id. Also, the EM_MIPS_RS3_LE machine is dead anyway (the
kernel will not load binaries containing it). kernel will not load binaries containing it).
Signed-off-by: James Cowgill <james410@cowgill.org.uk> Signed-off-by: James Cowgill <james410@cowgill.org.uk>
Upstream-Status: Pending [from debian] Upstream-Status: Pending [from debian]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
--- ---
backends/mips_init.c | 6 +----- backends/mips_init.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-) 1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/backends/mips_init.c b/backends/mips_init.c Index: b/backends/mips_init.c
index 975c04e..8482e7f 100644 ===================================================================
--- a/backends/mips_init.c --- a/backends/mips_init.c
+++ b/backends/mips_init.c +++ b/backends/mips_init.c
@@ -45,11 +45,7 @@ mips_init (Elf *elf __attribute__ ((unused)), @@ -45,11 +45,7 @@ mips_init (Elf *elf __attribute__ ((unus
return NULL; return NULL;
/* We handle it. */ /* We handle it. */
@@ -0,0 +1,48 @@
From 3f3e7b16934ec58ab47d2bdc9982f54a55b07534 Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Wed, 21 Aug 2019 16:25:33 +0800
Subject: [PATCH] fix compile failure with debian patches
While applying debian patches, there is a compile failure
...
elfutils-0.177/backends/mips_init.c:48:5: error: 'Ebl' {aka 'struct ebl'} has no member named 'name'
...
Since upstream applied commit [b323391 libdwelf: Add dwelf_elf_e_machine_string
and use it in readelf], it remove 'name' from 'struct ebl'
Upstream-Status: Pending
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
backends/mips_init.c | 1 -
backends/parisc_init.c | 1 -
2 files changed, 2 deletions(-)
diff --git a/backends/mips_init.c b/backends/mips_init.c
index bce5abe..e1c65c8 100644
--- a/backends/mips_init.c
+++ b/backends/mips_init.c
@@ -45,7 +45,6 @@ mips_init (Elf *elf __attribute__ ((unused)),
return NULL;
/* We handle it. */
- eh->name = "MIPS";
mips_init_reloc (eh);
HOOK (eh, reloc_simple_type);
HOOK (eh, return_value_location);
diff --git a/backends/parisc_init.c b/backends/parisc_init.c
index f1e401c..97b4a8c 100644
--- a/backends/parisc_init.c
+++ b/backends/parisc_init.c
@@ -56,7 +56,6 @@ parisc_init (Elf *elf __attribute__ ((unused)),
pa64 = 1;
}
/* We handle it. */
- eh->name = "PA-RISC";
parisc_init_reloc (eh);
HOOK (eh, reloc_simple_type);
HOOK (eh, machine_flag_check);
--
2.7.4
@@ -1,18 +1,18 @@
From 93ae9bb7d25a1adbcbab23a9b8493f370a93f0a3 Mon Sep 17 00:00:00 2001 From fdaab18a65ed2529656baa64cb6169f34d7e507b Mon Sep 17 00:00:00 2001
From: James Cowgill <james410@cowgill.org.uk> From: James Cowgill <james410@cowgill.org.uk>
Date: Mon, 5 Jan 2015 15:17:01 +0000 Date: Mon, 5 Jan 2015 15:17:01 +0000
Subject: [PATCH] Add support for mips64 abis in mips_retval.c Subject: [PATCH 2/3] Add support for mips64 abis in mips_retval.c
Signed-off-by: James Cowgill <james410@cowgill.org.uk> Signed-off-by: James Cowgill <james410@cowgill.org.uk>
Upstream-Status: Pending [from debian] Upstream-Status: Pending [from debian]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
--- ---
backends/mips_retval.c | 104 +++++++++++++++++++++++++++++++++++++---- backends/mips_retval.c | 104 ++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 94 insertions(+), 10 deletions(-) 1 file changed, 94 insertions(+), 10 deletions(-)
diff --git a/backends/mips_retval.c b/backends/mips_retval.c diff --git a/backends/mips_retval.c b/backends/mips_retval.c
index 656cd1f..57487bb 100644 index 33f12a7..d5c6ef0 100644
--- a/backends/mips_retval.c --- a/backends/mips_retval.c
+++ b/backends/mips_retval.c +++ b/backends/mips_retval.c
@@ -91,6 +91,8 @@ enum mips_abi find_mips_abi(Elf *elf) @@ -91,6 +91,8 @@ enum mips_abi find_mips_abi(Elf *elf)
@@ -166,3 +166,6 @@ index 656cd1f..57487bb 100644
*locp = loc_aggregate; *locp = loc_aggregate;
return nloc_aggregate; return nloc_aggregate;
} }
--
2.1.4
@@ -1,7 +1,7 @@
From bce44aece915698a224a8aefa66784b27455675b Mon Sep 17 00:00:00 2001 From 59d4b8c48e5040af7e02b34eb26ea602ec82a38e Mon Sep 17 00:00:00 2001
From: James Cowgill <james410@cowgill.org.uk> From: James Cowgill <james410@cowgill.org.uk>
Date: Mon, 5 Jan 2015 15:17:02 +0000 Date: Mon, 5 Jan 2015 15:17:02 +0000
Subject: [PATCH] Add mips n64 relocation format hack Subject: [PATCH 3/3] Add mips n64 relocation format hack
MIPSEL N64 ELF files use a slightly different format for storing relocation MIPSEL N64 ELF files use a slightly different format for storing relocation
entries which is incompatible with the normal R_SYM / R_INFO macros. entries which is incompatible with the normal R_SYM / R_INFO macros.
@@ -12,9 +12,9 @@ This patch also ensures that strip.c sets the correct value of e_machine
before manipulating relocations so that these changes take effect. before manipulating relocations so that these changes take effect.
Signed-off-by: James Cowgill <james410@cowgill.org.uk> Signed-off-by: James Cowgill <james410@cowgill.org.uk>
Upstream-Status: Pending [from debian] Upstream-Status: Pending [from debian]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
--- ---
libelf/gelf_getrel.c | 25 +++++++++++++++++++++++-- libelf/gelf_getrel.c | 25 +++++++++++++++++++++++--
libelf/gelf_getrela.c | 25 +++++++++++++++++++++++-- libelf/gelf_getrela.c | 25 +++++++++++++++++++++++--
@@ -23,10 +23,10 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
src/strip.c | 17 +++++++++++++++++ src/strip.c | 17 +++++++++++++++++
5 files changed, 101 insertions(+), 6 deletions(-) 5 files changed, 101 insertions(+), 6 deletions(-)
diff --git a/libelf/gelf_getrel.c b/libelf/gelf_getrel.c Index: elfutils-0.175/libelf/gelf_getrel.c
index 309e3d3..2a81a97 100644 ===================================================================
--- a/libelf/gelf_getrel.c --- elfutils-0.175.orig/libelf/gelf_getrel.c
+++ b/libelf/gelf_getrel.c +++ elfutils-0.175/libelf/gelf_getrel.c
@@ -36,6 +36,7 @@ @@ -36,6 +36,7 @@
#include "libelfP.h" #include "libelfP.h"
@@ -35,7 +35,7 @@ index 309e3d3..2a81a97 100644
GElf_Rel * GElf_Rel *
gelf_getrel (Elf_Data *data, int ndx, GElf_Rel *dst) gelf_getrel (Elf_Data *data, int ndx, GElf_Rel *dst)
@@ -89,8 +90,28 @@ gelf_getrel (Elf_Data *data, int ndx, GElf_Rel *dst) @@ -89,8 +90,28 @@ gelf_getrel (Elf_Data *data, int ndx, GE
result = NULL; result = NULL;
} }
else else
@@ -66,10 +66,10 @@ index 309e3d3..2a81a97 100644
} }
rwlock_unlock (scn->elf->lock); rwlock_unlock (scn->elf->lock);
diff --git a/libelf/gelf_getrela.c b/libelf/gelf_getrela.c Index: elfutils-0.175/libelf/gelf_getrela.c
index d695f65..1f42a80 100644 ===================================================================
--- a/libelf/gelf_getrela.c --- elfutils-0.175.orig/libelf/gelf_getrela.c
+++ b/libelf/gelf_getrela.c +++ elfutils-0.175/libelf/gelf_getrela.c
@@ -36,6 +36,7 @@ @@ -36,6 +36,7 @@
#include "libelfP.h" #include "libelfP.h"
@@ -78,7 +78,7 @@ index d695f65..1f42a80 100644
GElf_Rela * GElf_Rela *
gelf_getrela (Elf_Data *data, int ndx, GElf_Rela *dst) gelf_getrela (Elf_Data *data, int ndx, GElf_Rela *dst)
@@ -90,8 +91,28 @@ gelf_getrela (Elf_Data *data, int ndx, GElf_Rela *dst) @@ -90,8 +91,28 @@ gelf_getrela (Elf_Data *data, int ndx, G
result = NULL; result = NULL;
} }
else else
@@ -109,10 +109,10 @@ index d695f65..1f42a80 100644
} }
rwlock_unlock (scn->elf->lock); rwlock_unlock (scn->elf->lock);
diff --git a/libelf/gelf_update_rel.c b/libelf/gelf_update_rel.c Index: elfutils-0.175/libelf/gelf_update_rel.c
index 14f62e9..9095556 100644 ===================================================================
--- a/libelf/gelf_update_rel.c --- elfutils-0.175.orig/libelf/gelf_update_rel.c
+++ b/libelf/gelf_update_rel.c +++ elfutils-0.175/libelf/gelf_update_rel.c
@@ -36,6 +36,7 @@ @@ -36,6 +36,7 @@
#include "libelfP.h" #include "libelfP.h"
@@ -121,7 +121,7 @@ index 14f62e9..9095556 100644
int int
gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src) gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src)
@@ -86,6 +87,9 @@ gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src) @@ -86,6 +87,9 @@ gelf_update_rel (Elf_Data *dst, int ndx,
} }
else else
{ {
@@ -131,7 +131,7 @@ index 14f62e9..9095556 100644
/* Check whether we have to resize the data buffer. */ /* Check whether we have to resize the data buffer. */
if (INVALID_NDX (ndx, Elf64_Rel, &data_scn->d)) if (INVALID_NDX (ndx, Elf64_Rel, &data_scn->d))
{ {
@@ -93,7 +97,21 @@ gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src) @@ -93,7 +97,21 @@ gelf_update_rel (Elf_Data *dst, int ndx,
goto out; goto out;
} }
@@ -154,10 +154,10 @@ index 14f62e9..9095556 100644
} }
result = 1; result = 1;
diff --git a/libelf/gelf_update_rela.c b/libelf/gelf_update_rela.c Index: elfutils-0.175/libelf/gelf_update_rela.c
index 8825270..4caa85f 100644 ===================================================================
--- a/libelf/gelf_update_rela.c --- elfutils-0.175.orig/libelf/gelf_update_rela.c
+++ b/libelf/gelf_update_rela.c +++ elfutils-0.175/libelf/gelf_update_rela.c
@@ -36,6 +36,7 @@ @@ -36,6 +36,7 @@
#include "libelfP.h" #include "libelfP.h"
@@ -166,7 +166,7 @@ index 8825270..4caa85f 100644
int int
gelf_update_rela (Elf_Data *dst, int ndx, GElf_Rela *src) gelf_update_rela (Elf_Data *dst, int ndx, GElf_Rela *src)
@@ -89,6 +90,9 @@ gelf_update_rela (Elf_Data *dst, int ndx, GElf_Rela *src) @@ -89,6 +90,9 @@ gelf_update_rela (Elf_Data *dst, int ndx
} }
else else
{ {
@@ -176,7 +176,7 @@ index 8825270..4caa85f 100644
/* Check whether we have to resize the data buffer. */ /* Check whether we have to resize the data buffer. */
if (INVALID_NDX (ndx, Elf64_Rela, &data_scn->d)) if (INVALID_NDX (ndx, Elf64_Rela, &data_scn->d))
{ {
@@ -96,7 +100,21 @@ gelf_update_rela (Elf_Data *dst, int ndx, GElf_Rela *src) @@ -96,7 +100,21 @@ gelf_update_rela (Elf_Data *dst, int ndx
goto out; goto out;
} }
@@ -199,11 +199,11 @@ index 8825270..4caa85f 100644
} }
result = 1; result = 1;
diff --git a/src/strip.c b/src/strip.c Index: elfutils-0.175/src/strip.c
index a73009d..75bd7ba 100644 ===================================================================
--- a/src/strip.c --- elfutils-0.175.orig/src/strip.c
+++ b/src/strip.c +++ elfutils-0.175/src/strip.c
@@ -1062,6 +1062,23 @@ handle_elf (int fd, Elf *elf, const char *prefix, const char *fname, @@ -1062,6 +1062,23 @@ handle_elf (int fd, Elf *elf, const char
goto fail; goto fail;
} }
@@ -1,25 +1,25 @@
From f3384466475eab373c0f1cb79c61d45709913b00 Mon Sep 17 00:00:00 2001 From 4e6fededb3d8c90694c44214c862ac216a69ecae Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com> From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Wed, 28 May 2014 16:49:57 +0800 Date: Wed, 21 Aug 2019 16:50:33 +0800
Subject: [PATCH] elfutils: upgrade to 0.158 Subject: [PATCH] arm_backend
Upstream-Status: Pending [from debian] Upstream-Status: Pending [from debian]
Rebase to 0.177
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
--- ---
backends/arm_init.c | 18 +++- backends/arm_init.c | 18 ++++-
backends/arm_regs.c | 132 ++++++++++++++++++++++++++++ backends/arm_regs.c | 132 ++++++++++++++++++++++++++++++++++++
backends/arm_retval.c | 43 ++++++++- backends/arm_retval.c | 43 +++++++++++-
backends/libebl_arm.h | 9 ++ backends/libebl_arm.h | 9 +++
libelf/elf.h | 11 +++ libelf/elf.h | 11 +++
tests/run-addrcfi.sh | 93 +++++++++++++++++++- tests/run-addrcfi.sh | 93 ++++++++++++++++++++++++-
tests/run-allregs.sh | 95 +++++++++++++++++++- tests/run-allregs.sh | 95 +++++++++++++++++++++++++-
tests/run-readelf-mixed-corenote.sh | 11 ++- tests/run-readelf-mixed-corenote.sh | 11 ++-
8 files changed, 400 insertions(+), 12 deletions(-) 8 files changed, 400 insertions(+), 12 deletions(-)
create mode 100644 backends/libebl_arm.h create mode 100644 backends/libebl_arm.h
diff --git a/backends/arm_init.c b/backends/arm_init.c diff --git a/backends/arm_init.c b/backends/arm_init.c
index f2b1b11..1b71f16 100644 index af023f0..ea2bcb7 100644
--- a/backends/arm_init.c --- a/backends/arm_init.c
+++ b/backends/arm_init.c +++ b/backends/arm_init.c
@@ -35,20 +35,31 @@ @@ -35,20 +35,31 @@
@@ -53,9 +53,9 @@ index f2b1b11..1b71f16 100644
+ } + }
+ +
/* We handle it. */ /* We handle it. */
eh->name = "ARM";
arm_init_reloc (eh); arm_init_reloc (eh);
@@ -60,7 +71,10 @@ arm_init (Elf *elf __attribute__ ((unused)), HOOK (eh, segment_type_name);
@@ -59,7 +70,10 @@ arm_init (Elf *elf __attribute__ ((unused)),
HOOK (eh, core_note); HOOK (eh, core_note);
HOOK (eh, auxv_info); HOOK (eh, auxv_info);
HOOK (eh, check_object_attribute); HOOK (eh, check_object_attribute);
@@ -324,10 +324,10 @@ index 0000000..c00770c
+ +
+#endif +#endif
diff --git a/libelf/elf.h b/libelf/elf.h diff --git a/libelf/elf.h b/libelf/elf.h
index 6310054..5dc632b 100644 index 01648bd..05b7e7e 100644
--- a/libelf/elf.h --- a/libelf/elf.h
+++ b/libelf/elf.h +++ b/libelf/elf.h
@@ -2694,6 +2694,9 @@ enum @@ -2690,6 +2690,9 @@ enum
#define EF_ARM_EABI_VER4 0x04000000 #define EF_ARM_EABI_VER4 0x04000000
#define EF_ARM_EABI_VER5 0x05000000 #define EF_ARM_EABI_VER5 0x05000000
@@ -337,7 +337,7 @@ index 6310054..5dc632b 100644
/* Additional symbol types for Thumb. */ /* Additional symbol types for Thumb. */
#define STT_ARM_TFUNC STT_LOPROC /* A Thumb function. */ #define STT_ARM_TFUNC STT_LOPROC /* A Thumb function. */
#define STT_ARM_16BIT STT_HIPROC /* A Thumb label. */ #define STT_ARM_16BIT STT_HIPROC /* A Thumb label. */
@@ -2711,12 +2714,19 @@ enum @@ -2707,12 +2710,19 @@ enum
/* Processor specific values for the Phdr p_type field. */ /* Processor specific values for the Phdr p_type field. */
#define PT_ARM_EXIDX (PT_LOPROC + 1) /* ARM unwind segment. */ #define PT_ARM_EXIDX (PT_LOPROC + 1) /* ARM unwind segment. */
@@ -357,7 +357,7 @@ index 6310054..5dc632b 100644
/* AArch64 relocs. */ /* AArch64 relocs. */
@@ -3009,6 +3019,7 @@ enum @@ -3005,6 +3015,7 @@ enum
TLS block (LDR, STR). */ TLS block (LDR, STR). */
#define R_ARM_TLS_IE12GP 111 /* 12 bit GOT entry relative #define R_ARM_TLS_IE12GP 111 /* 12 bit GOT entry relative
to GOT origin (LDR). */ to GOT origin (LDR). */
@@ -366,7 +366,7 @@ index 6310054..5dc632b 100644
#define R_ARM_THM_TLS_DESCSEQ 129 #define R_ARM_THM_TLS_DESCSEQ 129
#define R_ARM_THM_TLS_DESCSEQ16 129 #define R_ARM_THM_TLS_DESCSEQ16 129
diff --git a/tests/run-addrcfi.sh b/tests/run-addrcfi.sh diff --git a/tests/run-addrcfi.sh b/tests/run-addrcfi.sh
index fd89d02..462d7c5 100755 index 64fa24d..1c2aa4d 100755
--- a/tests/run-addrcfi.sh --- a/tests/run-addrcfi.sh
+++ b/tests/run-addrcfi.sh +++ b/tests/run-addrcfi.sh
@@ -3554,6 +3554,38 @@ dwarf_cfi_addrframe (.eh_frame): no matching address range @@ -3554,6 +3554,38 @@ dwarf_cfi_addrframe (.eh_frame): no matching address range
@@ -619,3 +619,6 @@ index c960f1d..e4bf074 100755
CORE 124 PRPSINFO CORE 124 PRPSINFO
state: 0, sname: R, zomb: 0, nice: 0, flag: 0x00400500 state: 0, sname: R, zomb: 0, nice: 0, flag: 0x00400500
uid: 0, gid: 0, pid: 11087, ppid: 11063, pgrp: 11087, sid: 11063 uid: 0, gid: 0, pid: 11087, ppid: 11063, pgrp: 11087, sid: 11063
--
2.7.4
@@ -1,23 +1,16 @@
From dece09fb8c59dbdab356b63fbe6b7554dd2461a4 Mon Sep 17 00:00:00 2001
From: Helmut Grohne <helmut@subdivi.de> From: Helmut Grohne <helmut@subdivi.de>
Date: Fri, 23 Nov 2018 15:47:20 +0800 Subject: disable -Werror as it tends to break with new gcc versions
Subject: [PATCH] disable -Werror as it tends to break with new gcc versions
Bug-Debian: https://bugs.debian.org/886004 Bug-Debian: https://bugs.debian.org/886004
Last-Update: 2018-01-01 Last-Update: 2018-01-01
Upstream-Status: Pending [from debian] Upstream-Status: Pending [from debian]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
--- Index: elfutils-0.176/config/eu.am
config/eu.am | 1 - ===================================================================
1 file changed, 1 deletion(-) --- elfutils-0.176.orig/config/eu.am
+++ elfutils-0.176/config/eu.am
diff --git a/config/eu.am b/config/eu.am @@ -73,7 +73,6 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -W
index 82acda3..dede5c6 100644
--- a/config/eu.am
+++ b/config/eu.am
@@ -73,7 +73,6 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
-Wold-style-definition -Wstrict-prototypes -Wtrampolines \ -Wold-style-definition -Wstrict-prototypes -Wtrampolines \
$(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \ $(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \
$(NULL_DEREFERENCE_WARNING) $(IMPLICIT_FALLTHROUGH_WARNING) \ $(NULL_DEREFERENCE_WARNING) $(IMPLICIT_FALLTHROUGH_WARNING) \
@@ -1,21 +1,21 @@
From 8fe468682c550606ea961a1f996a8618940eb084 Mon Sep 17 00:00:00 2001 From 8efad9105b38985bea373416ae8fcacf21d1d129 Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com> From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Fri, 16 Jul 2010 12:26:46 +0800 Date: Wed, 21 Aug 2019 15:44:18 +0800
Subject: [PATCH] elfutils: upgrade to version 0.148 Subject: [PATCH] hppa backend
Rebase to 0.177
Upstream-Status: Pending [from debian] Upstream-Status: Pending [from debian]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
--- ---
backends/Makefile.am | 8 +- backends/Makefile.am | 7 +-
backends/libebl_parisc.h | 9 ++ backends/libebl_parisc.h | 9 ++
backends/parisc_init.c | 73 +++++++++++++ backends/parisc_init.c | 73 ++++++++++++++++
backends/parisc_regs.c | 159 ++++++++++++++++++++++++++++ backends/parisc_regs.c | 159 ++++++++++++++++++++++++++++++++++
backends/parisc_reloc.def | 128 +++++++++++++++++++++++ backends/parisc_reloc.def | 128 ++++++++++++++++++++++++++++
backends/parisc_retval.c | 213 ++++++++++++++++++++++++++++++++++++++ backends/parisc_retval.c | 213 ++++++++++++++++++++++++++++++++++++++++++++++
backends/parisc_symbol.c | 113 ++++++++++++++++++++ backends/parisc_symbol.c | 113 ++++++++++++++++++++++++
libelf/elf.h | 11 ++ libelf/elf.h | 11 +++
8 files changed, 712 insertions(+), 2 deletions(-) 8 files changed, 711 insertions(+), 2 deletions(-)
create mode 100644 backends/libebl_parisc.h create mode 100644 backends/libebl_parisc.h
create mode 100644 backends/parisc_init.c create mode 100644 backends/parisc_init.c
create mode 100644 backends/parisc_regs.c create mode 100644 backends/parisc_regs.c
@@ -24,35 +24,31 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
create mode 100644 backends/parisc_symbol.c create mode 100644 backends/parisc_symbol.c
diff --git a/backends/Makefile.am b/backends/Makefile.am diff --git a/backends/Makefile.am b/backends/Makefile.am
index 2126a2e..5671a32 100644 index 175468f..91a38e2 100644
--- a/backends/Makefile.am --- a/backends/Makefile.am
+++ b/backends/Makefile.am +++ b/backends/Makefile.am
@@ -33,12 +33,13 @@ AM_CPPFLAGS += -I$(top_srcdir)/libebl -I$(top_srcdir)/libasm \ @@ -33,16 +33,19 @@ AM_CPPFLAGS += -I$(top_srcdir)/libebl -I$(top_srcdir)/libasm \
modules = i386 sh x86_64 ia64 alpha arm aarch64 sparc ppc ppc64 s390 \ modules = i386 sh x86_64 ia64 alpha arm aarch64 sparc ppc ppc64 s390 \
- tilegx m68k bpf riscv - tilegx m68k bpf riscv csky
+ tilegx m68k bpf riscv parisc + tilegx m68k bpf riscv csky parisc
libebl_pic = libebl_i386_pic.a libebl_sh_pic.a libebl_x86_64_pic.a \ libebl_pic = libebl_i386_pic.a libebl_sh_pic.a libebl_x86_64_pic.a \
libebl_ia64_pic.a libebl_alpha_pic.a libebl_arm_pic.a \ libebl_ia64_pic.a libebl_alpha_pic.a libebl_arm_pic.a \
libebl_aarch64_pic.a libebl_sparc_pic.a libebl_ppc_pic.a \ libebl_aarch64_pic.a libebl_sparc_pic.a libebl_ppc_pic.a \
libebl_ppc64_pic.a libebl_s390_pic.a libebl_tilegx_pic.a \ libebl_ppc64_pic.a libebl_s390_pic.a libebl_tilegx_pic.a \
- libebl_m68k_pic.a libebl_bpf_pic.a libebl_riscv_pic.a libebl_m68k_pic.a libebl_bpf_pic.a libebl_riscv_pic.a \
+ libebl_m68k_pic.a libebl_bpf_pic.a libebl_riscv_pic.a \ - libebl_csky_pic.a
+ libebl_parisc_pic.a + libebl_csky_pic.a libebl_parisc_pic.a
noinst_LIBRARIES = $(libebl_pic) noinst_LIBRARIES = $(libebl_pic)
noinst_DATA = $(libebl_pic:_pic.a=.so) noinst_DATA = $(libebl_pic:_pic.a=.so)
@@ -136,6 +137,9 @@ riscv_SRCS = riscv_init.c riscv_symbol.c riscv_cfi.c riscv_regs.c \
libebl_riscv_pic_a_SOURCES = $(riscv_SRCS)
am_libebl_riscv_pic_a_OBJECTS = $(riscv_SRCS:.c=.os)
+parisc_SRCS = parisc_init.c parisc_symbol.c parisc_regs.c parisc_retval.c +parisc_SRCS = parisc_init.c parisc_symbol.c parisc_regs.c parisc_retval.c
+libebl_parisc_pic_a_SOURCES = $(parisc_SRCS) +libebl_parisc_pic_a_SOURCES = $(parisc_SRCS)
+am_libebl_parisc_pic_a_OBJECTS = $(parisc_SRCS:.c=.os) +am_libebl_parisc_pic_a_OBJECTS = $(parisc_SRCS:.c=.os)
libebl_%.so libebl_%.map: libebl_%_pic.a $(libelf) $(libdw) $(libeu) libelf = ../libelf/libelf.so
@rm -f $(@:.so=.map) libdw = ../libdw/libdw.so
diff --git a/backends/libebl_parisc.h b/backends/libebl_parisc.h diff --git a/backends/libebl_parisc.h b/backends/libebl_parisc.h
new file mode 100644 new file mode 100644
index 0000000..f473b79 index 0000000..f473b79
@@ -785,10 +781,10 @@ index 0000000..5754bd8
+ } + }
+} +}
diff --git a/libelf/elf.h b/libelf/elf.h diff --git a/libelf/elf.h b/libelf/elf.h
index 75043bc..6310054 100644 index 01648bd..218ceb2 100644
--- a/libelf/elf.h --- a/libelf/elf.h
+++ b/libelf/elf.h +++ b/libelf/elf.h
@@ -2155,16 +2155,24 @@ enum @@ -2162,16 +2162,24 @@ enum
#define R_PARISC_PCREL17F 12 /* 17 bits of rel. address. */ #define R_PARISC_PCREL17F 12 /* 17 bits of rel. address. */
#define R_PARISC_PCREL14R 14 /* Right 14 bits of rel. address. */ #define R_PARISC_PCREL14R 14 /* Right 14 bits of rel. address. */
#define R_PARISC_DPREL21L 18 /* Left 21 bits of rel. address. */ #define R_PARISC_DPREL21L 18 /* Left 21 bits of rel. address. */
@@ -813,7 +809,7 @@ index 75043bc..6310054 100644
#define R_PARISC_LTOFF_FPTR32 57 /* 32 bits LT-rel. function pointer. */ #define R_PARISC_LTOFF_FPTR32 57 /* 32 bits LT-rel. function pointer. */
#define R_PARISC_LTOFF_FPTR21L 58 /* LT-rel. fct ptr, left 21 bits. */ #define R_PARISC_LTOFF_FPTR21L 58 /* LT-rel. fct ptr, left 21 bits. */
#define R_PARISC_LTOFF_FPTR14R 62 /* LT-rel. fct ptr, right 14 bits. */ #define R_PARISC_LTOFF_FPTR14R 62 /* LT-rel. fct ptr, right 14 bits. */
@@ -2173,6 +2181,7 @@ enum @@ -2180,6 +2188,7 @@ enum
#define R_PARISC_PLABEL21L 66 /* Left 21 bits of fdesc address. */ #define R_PARISC_PLABEL21L 66 /* Left 21 bits of fdesc address. */
#define R_PARISC_PLABEL14R 70 /* Right 14 bits of fdesc address. */ #define R_PARISC_PLABEL14R 70 /* Right 14 bits of fdesc address. */
#define R_PARISC_PCREL64 72 /* 64 bits PC-rel. address. */ #define R_PARISC_PCREL64 72 /* 64 bits PC-rel. address. */
@@ -821,7 +817,7 @@ index 75043bc..6310054 100644
#define R_PARISC_PCREL22F 74 /* 22 bits PC-rel. address. */ #define R_PARISC_PCREL22F 74 /* 22 bits PC-rel. address. */
#define R_PARISC_PCREL14WR 75 /* PC-rel. address, right 14 bits. */ #define R_PARISC_PCREL14WR 75 /* PC-rel. address, right 14 bits. */
#define R_PARISC_PCREL14DR 76 /* PC rel. address, right 14 bits. */ #define R_PARISC_PCREL14DR 76 /* PC rel. address, right 14 bits. */
@@ -2198,6 +2207,8 @@ enum @@ -2205,6 +2214,8 @@ enum
#define R_PARISC_LTOFF16WF 102 /* 16 bits LT-rel. address. */ #define R_PARISC_LTOFF16WF 102 /* 16 bits LT-rel. address. */
#define R_PARISC_LTOFF16DF 103 /* 16 bits LT-rel. address. */ #define R_PARISC_LTOFF16DF 103 /* 16 bits LT-rel. address. */
#define R_PARISC_SECREL64 104 /* 64 bits section rel. address. */ #define R_PARISC_SECREL64 104 /* 64 bits section rel. address. */
@@ -830,3 +826,6 @@ index 75043bc..6310054 100644
#define R_PARISC_SEGREL64 112 /* 64 bits segment rel. address. */ #define R_PARISC_SEGREL64 112 /* 64 bits segment rel. address. */
#define R_PARISC_PLTOFF14WR 115 /* PLT-rel. address, right 14 bits. */ #define R_PARISC_PLTOFF14WR 115 /* PLT-rel. address, right 14 bits. */
#define R_PARISC_PLTOFF14DR 116 /* PLT-rel. address, right 14 bits. */ #define R_PARISC_PLTOFF14DR 116 /* PLT-rel. address, right 14 bits. */
--
2.7.4
@@ -1,19 +1,10 @@
From 2f54a8cf959ea83c452b1a22acbc47d2738b5fa0 Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Fri, 23 Nov 2018 15:47:20 +0800
Subject: [PATCH] elfutils: 0.170 -> 0.172
Upstream-Status: Pending [from debian] Upstream-Status: Pending [from debian]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
--- Index: elfutils-0.165/tests/run-native-test.sh
tests/run-native-test.sh | 3 +++ ===================================================================
1 file changed, 3 insertions(+) --- elfutils-0.165.orig/tests/run-native-test.sh
+++ elfutils-0.165/tests/run-native-test.sh
diff --git a/tests/run-native-test.sh b/tests/run-native-test.sh
index 5351e02..70f6681 100755
--- a/tests/run-native-test.sh
+++ b/tests/run-native-test.sh
@@ -83,6 +83,9 @@ native_test() @@ -83,6 +83,9 @@ native_test()
# "cannot attach to process: Function not implemented". # "cannot attach to process: Function not implemented".
[ "$(uname)" = "GNU/kFreeBSD" ] && exit 77 [ "$(uname)" = "GNU/kFreeBSD" ] && exit 77
@@ -1,19 +1,8 @@
From d326ad99be856815260a04e573fc97044c02f444 Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Mon, 2 Jul 2018 13:57:09 +0800
Subject: [PATCH] elfutils: 0.170 -> 0.172
Upstream-Status: Pending [from debian] Upstream-Status: Pending [from debian]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
--- --- elfutils-0.165.orig/tests/run-strip-strmerge.sh
tests/run-strip-strmerge.sh | 2 +- +++ elfutils-0.165/tests/run-strip-strmerge.sh
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/run-strip-strmerge.sh b/tests/run-strip-strmerge.sh
index aa9c1eb..2bab8ec 100755
--- a/tests/run-strip-strmerge.sh
+++ b/tests/run-strip-strmerge.sh
@@ -30,7 +30,7 @@ remerged=remerged.elf @@ -30,7 +30,7 @@ remerged=remerged.elf
tempfiles $merged $stripped $debugfile $remerged tempfiles $merged $stripped $debugfile $remerged
@@ -1,17 +1,8 @@
From bac45996ece75900e0cde97f3889eaf6c1b286f8 Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Fri, 23 Nov 2018 15:47:20 +0800
Subject: [PATCH] elfutils: 0.170 -> 0.172
Upstream-Status: Pending [from debian] Upstream-Status: Pending [from debian]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
--- Index: b/tests/run-native-test.sh
tests/run-native-test.sh | 6 ++++++ ===================================================================
1 file changed, 6 insertions(+)
diff --git a/tests/run-native-test.sh b/tests/run-native-test.sh
index d19007f..5351e02 100755
--- a/tests/run-native-test.sh --- a/tests/run-native-test.sh
+++ b/tests/run-native-test.sh +++ b/tests/run-native-test.sh
@@ -77,6 +77,12 @@ native_test() @@ -77,6 +77,12 @@ native_test()
@@ -1,18 +1,19 @@
From 10a75fd2beefafe2043163f85426d0e575de58d8 Mon Sep 17 00:00:00 2001 From 68b497668cde5171880d073a7ea50d11c3bddbfc Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com> From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Fri, 16 Jul 2010 12:26:46 +0800 Date: Wed, 21 Aug 2019 15:49:52 +0800
Subject: [PATCH] elfutils: upgrade to version 0.148 Subject: [PATCH] mips backend
Rebase to 0.177
Upstream-Status: Pending [from debian] Upstream-Status: Pending [from debian]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
--- ---
backends/Makefile.am | 8 +- backends/Makefile.am | 8 +-
backends/mips_init.c | 59 ++++++++ backends/mips_init.c | 59 +++++++++
backends/mips_regs.c | 104 +++++++++++++ backends/mips_regs.c | 104 ++++++++++++++++
backends/mips_reloc.def | 79 ++++++++++ backends/mips_reloc.def | 79 ++++++++++++
backends/mips_retval.c | 321 ++++++++++++++++++++++++++++++++++++++++ backends/mips_retval.c | 321 ++++++++++++++++++++++++++++++++++++++++++++++++
backends/mips_symbol.c | 53 +++++++ backends/mips_symbol.c | 53 ++++++++
libebl/eblopenbackend.c | 2 + libebl/eblopenbackend.c | 2 +
7 files changed, 624 insertions(+), 2 deletions(-) 7 files changed, 624 insertions(+), 2 deletions(-)
create mode 100644 backends/mips_init.c create mode 100644 backends/mips_init.c
@@ -22,28 +23,28 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
create mode 100644 backends/mips_symbol.c create mode 100644 backends/mips_symbol.c
diff --git a/backends/Makefile.am b/backends/Makefile.am diff --git a/backends/Makefile.am b/backends/Makefile.am
index 5671a32..ba84da6 100644 index 91a38e2..aba8a4a 100644
--- a/backends/Makefile.am --- a/backends/Makefile.am
+++ b/backends/Makefile.am +++ b/backends/Makefile.am
@@ -33,13 +33,13 @@ AM_CPPFLAGS += -I$(top_srcdir)/libebl -I$(top_srcdir)/libasm \ @@ -33,13 +33,13 @@ AM_CPPFLAGS += -I$(top_srcdir)/libebl -I$(top_srcdir)/libasm \
modules = i386 sh x86_64 ia64 alpha arm aarch64 sparc ppc ppc64 s390 \ modules = i386 sh x86_64 ia64 alpha arm aarch64 sparc ppc ppc64 s390 \
- tilegx m68k bpf riscv parisc - tilegx m68k bpf riscv csky parisc
+ tilegx m68k bpf riscv parisc mips + tilegx m68k bpf riscv csky parisc mips
libebl_pic = libebl_i386_pic.a libebl_sh_pic.a libebl_x86_64_pic.a \ libebl_pic = libebl_i386_pic.a libebl_sh_pic.a libebl_x86_64_pic.a \
libebl_ia64_pic.a libebl_alpha_pic.a libebl_arm_pic.a \ libebl_ia64_pic.a libebl_alpha_pic.a libebl_arm_pic.a \
libebl_aarch64_pic.a libebl_sparc_pic.a libebl_ppc_pic.a \ libebl_aarch64_pic.a libebl_sparc_pic.a libebl_ppc_pic.a \
libebl_ppc64_pic.a libebl_s390_pic.a libebl_tilegx_pic.a \ libebl_ppc64_pic.a libebl_s390_pic.a libebl_tilegx_pic.a \
libebl_m68k_pic.a libebl_bpf_pic.a libebl_riscv_pic.a \ libebl_m68k_pic.a libebl_bpf_pic.a libebl_riscv_pic.a \
- libebl_parisc_pic.a - libebl_csky_pic.a libebl_parisc_pic.a
+ libebl_parisc_pic.a libebl_mips_pic.a + libebl_csky_pic.a libebl_parisc_pic.a libebl_mips_pic.a
noinst_LIBRARIES = $(libebl_pic) noinst_LIBRARIES = $(libebl_pic)
noinst_DATA = $(libebl_pic:_pic.a=.so) noinst_DATA = $(libebl_pic:_pic.a=.so)
@@ -141,6 +141,10 @@ parisc_SRCS = parisc_init.c parisc_symbol.c parisc_regs.c parisc_retval.c @@ -145,6 +145,10 @@ csky_SRCS = csky_attrs.c csky_init.c csky_symbol.c csky_cfi.c \
libebl_parisc_pic_a_SOURCES = $(parisc_SRCS) libebl_csky_pic_a_SOURCES = $(csky_SRCS)
am_libebl_parisc_pic_a_OBJECTS = $(parisc_SRCS:.c=.os) am_libebl_csky_pic_a_OBJECTS = $(csky_SRCS:.c=.os)
+mips_SRCS = mips_init.c mips_symbol.c mips_regs.c mips_retval.c +mips_SRCS = mips_init.c mips_symbol.c mips_regs.c mips_retval.c
+libebl_mips_pic_a_SOURCES = $(mips_SRCS) +libebl_mips_pic_a_SOURCES = $(mips_SRCS)
@@ -699,7 +700,7 @@ index 0000000..261b05d
+ } + }
+} +}
diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c
index d54b720..6cf766f 100644 index 01711f5..d0c3589 100644
--- a/libebl/eblopenbackend.c --- a/libebl/eblopenbackend.c
+++ b/libebl/eblopenbackend.c +++ b/libebl/eblopenbackend.c
@@ -71,6 +71,8 @@ static const struct @@ -71,6 +71,8 @@ static const struct
@@ -711,3 +712,6 @@ index d54b720..6cf766f 100644
{ "m32", "elf_m32", "m32", 3, EM_M32, 0, 0 }, { "m32", "elf_m32", "m32", 3, EM_M32, 0, 0 },
{ "m68k", "elf_m68k", "m68k", 4, EM_68K, ELFCLASS32, ELFDATA2MSB }, { "m68k", "elf_m68k", "m68k", 4, EM_68K, ELFCLASS32, ELFDATA2MSB },
--
2.7.4
@@ -0,0 +1,131 @@
From 96e38289f2887ddb8e6d2fb91ea04bdbdf034ab5 Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Wed, 21 Aug 2019 17:00:30 +0800
Subject: [PATCH 2/2] mips_cfi
Upstream-Status: Pending [from debian]
Rebase to 0.177
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
backends/Makefile.am | 2 +-
backends/mips_cfi.c | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++
backends/mips_init.c | 1 +
3 files changed, 82 insertions(+), 1 deletion(-)
create mode 100644 backends/mips_cfi.c
diff --git a/backends/Makefile.am b/backends/Makefile.am
index aba8a4a..6ac0eec 100644
--- a/backends/Makefile.am
+++ b/backends/Makefile.am
@@ -145,7 +145,7 @@ csky_SRCS = csky_attrs.c csky_init.c csky_symbol.c csky_cfi.c \
libebl_csky_pic_a_SOURCES = $(csky_SRCS)
am_libebl_csky_pic_a_OBJECTS = $(csky_SRCS:.c=.os)
-mips_SRCS = mips_init.c mips_symbol.c mips_regs.c mips_retval.c
+mips_SRCS = mips_init.c mips_symbol.c mips_regs.c mips_retval.c mips_cfi.c
libebl_mips_pic_a_SOURCES = $(mips_SRCS)
am_libebl_mips_pic_a_OBJECTS = $(mips_SRCS:.c=.os)
diff --git a/backends/mips_cfi.c b/backends/mips_cfi.c
new file mode 100644
index 0000000..9ffdab5
--- /dev/null
+++ b/backends/mips_cfi.c
@@ -0,0 +1,80 @@
+/* MIPS ABI-specified defaults for DWARF CFI.
+ Copyright (C) 2018 Kurt Roeckx, Inc.
+ This file is part of elfutils.
+
+ This file is free software; you can redistribute it and/or modify
+ it under the terms of either
+
+ * the GNU Lesser General Public License as published by the Free
+ Software Foundation; either version 3 of the License, or (at
+ your option) any later version
+
+ or
+
+ * the GNU General Public License as published by the Free
+ Software Foundation; either version 2 of the License, or (at
+ your option) any later version
+
+ or both in parallel, as here.
+
+ elfutils is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received copies of the GNU General Public License and
+ the GNU Lesser General Public License along with this program. If
+ not, see <http://www.gnu.org/licenses/>. */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <dwarf.h>
+
+#define BACKEND mips_
+#include "libebl_CPU.h"
+
+int
+mips_abi_cfi (Ebl *ebl __attribute__ ((unused)), Dwarf_CIE *abi_info)
+{
+ static const uint8_t abi_cfi[] =
+ {
+ /* Call-saved regs. */
+ DW_CFA_same_value, ULEB128_7 (16), /* $16 */
+ DW_CFA_same_value, ULEB128_7 (17), /* $17 */
+ DW_CFA_same_value, ULEB128_7 (18), /* $18 */
+ DW_CFA_same_value, ULEB128_7 (19), /* $19 */
+ DW_CFA_same_value, ULEB128_7 (20), /* $20 */
+ DW_CFA_same_value, ULEB128_7 (21), /* $21 */
+ DW_CFA_same_value, ULEB128_7 (22), /* $22 */
+ DW_CFA_same_value, ULEB128_7 (23), /* $23 */
+ DW_CFA_same_value, ULEB128_7 (28), /* $28 */
+ DW_CFA_same_value, ULEB128_7 (29), /* $29 */
+ DW_CFA_same_value, ULEB128_7 (30), /* $30 */
+
+ DW_CFA_same_value, ULEB128_7 (52), /* $f20 */
+ DW_CFA_same_value, ULEB128_7 (53), /* $f21 */
+ DW_CFA_same_value, ULEB128_7 (54), /* $f22 */
+ DW_CFA_same_value, ULEB128_7 (55), /* $f23 */
+ DW_CFA_same_value, ULEB128_7 (56), /* $f24 */
+ DW_CFA_same_value, ULEB128_7 (57), /* $f25 */
+ DW_CFA_same_value, ULEB128_7 (58), /* $f26 */
+ DW_CFA_same_value, ULEB128_7 (59), /* $f27 */
+ DW_CFA_same_value, ULEB128_7 (60), /* $f28 */
+ DW_CFA_same_value, ULEB128_7 (61), /* $f29 */
+ DW_CFA_same_value, ULEB128_7 (62), /* $f30 */
+ DW_CFA_same_value, ULEB128_7 (63), /* $f31 */
+
+ /* The CFA is the SP. */
+ DW_CFA_def_cfa, ULEB128_7 (29), ULEB128_7 (0),
+ };
+
+ abi_info->initial_instructions = abi_cfi;
+ abi_info->initial_instructions_end = &abi_cfi[sizeof abi_cfi];
+ abi_info->data_alignment_factor = 4;
+
+ abi_info->return_address_register = 31; /* $31 */
+
+ return 0;
+}
diff --git a/backends/mips_init.c b/backends/mips_init.c
index 8482e7f..bce5abe 100644
--- a/backends/mips_init.c
+++ b/backends/mips_init.c
@@ -50,6 +50,7 @@ mips_init (Elf *elf __attribute__ ((unused)),
HOOK (eh, reloc_simple_type);
HOOK (eh, return_value_location);
HOOK (eh, register_info);
+ HOOK (eh, abi_cfi);
return MODVERSION;
}
--
2.7.4
@@ -1,23 +1,22 @@
From 33da4b4347aacdfb8b1b42e06e29e68a4b882d96 Mon Sep 17 00:00:00 2001 From 7bdc83296865cf2b2a5615dbdb7ac0d441fb1849 Mon Sep 17 00:00:00 2001
From: Kurt Roeckx <kurt@roeckx.be> From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Mon, 4 Mar 2019 09:45:00 +0000 Date: Wed, 21 Aug 2019 16:55:01 +0800
Subject: [PATCH] Make readelf -w output debug information on mips Subject: [PATCH] mips_readelf_w
Upstreams wants a change where this is handled by a hook that needs
to be filled in by the backend for the arch.
Upstream-Status: Pending [from debian] Upstream-Status: Pending [from debian]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Rebase to 0.177
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
--- ---
src/readelf.c | 3 ++- src/readelf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-) 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/readelf.c b/src/readelf.c diff --git a/src/readelf.c b/src/readelf.c
index 33706bd..ef13159 100644 index 2084fb1..5c02a9b 100644
--- a/src/readelf.c --- a/src/readelf.c
+++ b/src/readelf.c +++ b/src/readelf.c
@@ -11148,7 +11148,8 @@ print_debug (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr) @@ -11256,7 +11256,8 @@ print_debug (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr)
GElf_Shdr shdr_mem; GElf_Shdr shdr_mem;
GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
@@ -27,3 +26,6 @@ index 33706bd..ef13159 100644
{ {
static const struct static const struct
{ {
--
2.7.4
@@ -1,16 +1,13 @@
From 03a343c6b1b72598fce654b8a638f106da44abfb Mon Sep 17 00:00:00 2001 From 6393b0e57872b3ffedf0dbd6784cd29694010878 Mon Sep 17 00:00:00 2001
From: OpenEmbedded <oe.patch@oe> From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Fri, 12 Apr 2019 08:05:50 +0000 Date: Wed, 21 Aug 2019 16:59:01 +0800
Subject: [PATCH] On many architectures this test fails because binaries/libs Subject: [PATCH 1/2] testsuite-ignore-elflint
produced by binutils don't pass elflint. However elfutils shouldn't FTBFS
because of this.
So we run the tests on all archs to see what breaks, but if it breaks we ignore Upstream-Status: Pending [from debian]
the result (exitcode 77 means: this test was skipped).
Upstream-Status: Inappropriate [oe specific] Rebase to 0.177
Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
--- ---
tests/run-elflint-self.sh | 2 +- tests/run-elflint-self.sh | 2 +-
tests/test-subr.sh | 15 +++++++++++++++ tests/test-subr.sh | 15 +++++++++++++++
@@ -50,3 +47,6 @@ index 09f428d..26f61f1 100644
+ if test $exit_status != 0; then exit $exit_status; fi + if test $exit_status != 0; then exit $exit_status; fi
+} +}
+ +
--
2.7.4
@@ -1,3 +1,8 @@
From d5a1651df9884fcf57ed320bc2f866538af2f420 Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Fri, 23 Aug 2019 10:18:47 +0800
Subject: [PATCH 2/3] musl-libs
Collection of fixes needed to compile libelf and other libraries Collection of fixes needed to compile libelf and other libraries
provided by elfutils for musl targets provided by elfutils for musl targets
@@ -7,6 +12,21 @@ upstream given that elfutils has been closely tied to glibc
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Upstream-Status: Inappropriate [workaround for musl] Upstream-Status: Inappropriate [workaround for musl]
Rebase to 0.177
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
lib/error.h | 27 +++++++++++++++++++++++++++
lib/fixedsizehash.h | 1 -
lib/libeu.h | 1 +
libdwfl/dwfl_error.c | 9 +++++++++
libdwfl/linux-kernel-modules.c | 1 +
libelf/elf.h | 9 ++++++---
6 files changed, 44 insertions(+), 4 deletions(-)
create mode 100644 lib/error.h
diff --git a/lib/error.h b/lib/error.h
new file mode 100644
index 0000000..ef06827
--- /dev/null --- /dev/null
+++ b/lib/error.h +++ b/lib/error.h
@@ -0,0 +1,27 @@ @@ -0,0 +1,27 @@
@@ -37,6 +57,8 @@ Upstream-Status: Inappropriate [workaround for musl]
+} +}
+ +
+#endif /* _ERROR_H_ */ +#endif /* _ERROR_H_ */
diff --git a/lib/fixedsizehash.h b/lib/fixedsizehash.h
index dac2a5f..43016fc 100644
--- a/lib/fixedsizehash.h --- a/lib/fixedsizehash.h
+++ b/lib/fixedsizehash.h +++ b/lib/fixedsizehash.h
@@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
@@ -47,6 +69,8 @@ Upstream-Status: Inappropriate [workaround for musl]
#include <system.h> #include <system.h>
diff --git a/lib/libeu.h b/lib/libeu.h
index ecb4d01..edc85e3 100644
--- a/lib/libeu.h --- a/lib/libeu.h
+++ b/lib/libeu.h +++ b/lib/libeu.h
@@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
@@ -57,6 +81,8 @@ Upstream-Status: Inappropriate [workaround for musl]
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
diff --git a/libdwfl/dwfl_error.c b/libdwfl/dwfl_error.c
index 7bcf61c..11dcc8b 100644
--- a/libdwfl/dwfl_error.c --- a/libdwfl/dwfl_error.c
+++ b/libdwfl/dwfl_error.c +++ b/libdwfl/dwfl_error.c
@@ -154,7 +154,16 @@ dwfl_errmsg (int error) @@ -154,7 +154,16 @@ dwfl_errmsg (int error)
@@ -76,6 +102,8 @@ Upstream-Status: Inappropriate [workaround for musl]
case OTHER_ERROR (LIBELF): case OTHER_ERROR (LIBELF):
return elf_errmsg (error & 0xffff); return elf_errmsg (error & 0xffff);
case OTHER_ERROR (LIBDW): case OTHER_ERROR (LIBDW):
diff --git a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c
index d46ab5a..1c3faee 100644
--- a/libdwfl/linux-kernel-modules.c --- a/libdwfl/linux-kernel-modules.c
+++ b/libdwfl/linux-kernel-modules.c +++ b/libdwfl/linux-kernel-modules.c
@@ -50,6 +50,7 @@ @@ -50,6 +50,7 @@
@@ -86,6 +114,8 @@ Upstream-Status: Inappropriate [workaround for musl]
/* If fts.h is included before config.h, its indirect inclusions may not /* If fts.h is included before config.h, its indirect inclusions may not
give us the right LFS aliases of these functions, so map them manually. */ give us the right LFS aliases of these functions, so map them manually. */
diff --git a/libelf/elf.h b/libelf/elf.h
index bed273d..be228e6 100644
--- a/libelf/elf.h --- a/libelf/elf.h
+++ b/libelf/elf.h +++ b/libelf/elf.h
@@ -21,7 +21,9 @@ @@ -21,7 +21,9 @@
@@ -99,9 +129,9 @@ Upstream-Status: Inappropriate [workaround for musl]
/* Standard ELF types. */ /* Standard ELF types. */
@@ -3937,6 +3939,7 @@ enum @@ -4029,6 +4031,7 @@ enum
#define R_METAG_TLS_LE_HI16 60 #define R_NDS32_TLS_TPOFF 102
#define R_METAG_TLS_LE_LO16 61 #define R_NDS32_TLS_DESC 119
-__END_DECLS -__END_DECLS
- -
@@ -109,3 +139,6 @@ Upstream-Status: Inappropriate [workaround for musl]
+} +}
+#endif +#endif
#endif /* elf.h */ #endif /* elf.h */
--
2.7.4
@@ -1,9 +1,25 @@
From 77b89dbc9f9f965ad0ef2e341d7d46bce5f07549 Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Fri, 23 Aug 2019 10:17:25 +0800
Subject: [PATCH 1/3] musl-obstack-fts
Look for libfts and libobstack during configure, these Look for libfts and libobstack during configure, these
libraries are external to libc when using musl, whereas libraries are external to libc when using musl, whereas
on glibc these libraries are provided in libc itself. on glibc these libraries are provided in libc itself.
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Upstream-Status: Inappropriate [workaround for musl] Upstream-Status: Inappropriate [workaround for musl]
Rebase to 0.177
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
configure.ac | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
libdw/Makefile.am | 2 +-
src/Makefile.am | 8 ++++----
3 files changed, 59 insertions(+), 5 deletions(-)
diff --git a/configure.ac b/configure.ac
index f93964c..b87b762 100644
--- a/configure.ac --- a/configure.ac
+++ b/configure.ac +++ b/configure.ac
@@ -494,6 +494,60 @@ else @@ -494,6 +494,60 @@ else
@@ -67,9 +83,11 @@ Upstream-Status: Inappropriate [workaround for musl]
dnl The directories with content. dnl The directories with content.
dnl Documentation. dnl Documentation.
diff --git a/libdw/Makefile.am b/libdw/Makefile.am
index 7a3d532..a541fa3 100644
--- a/libdw/Makefile.am --- a/libdw/Makefile.am
+++ b/libdw/Makefile.am +++ b/libdw/Makefile.am
@@ -108,7 +108,7 @@ am_libdw_pic_a_OBJECTS = $(libdw_a_SOURC @@ -108,7 +108,7 @@ am_libdw_pic_a_OBJECTS = $(libdw_a_SOURCES:.c=.os)
libdw_so_LIBS = libdw_pic.a ../libdwelf/libdwelf_pic.a \ libdw_so_LIBS = libdw_pic.a ../libdwelf/libdwelf_pic.a \
../libdwfl/libdwfl_pic.a ../libebl/libebl.a ../libdwfl/libdwfl_pic.a ../libebl/libebl.a
libdw_so_DEPS = ../lib/libeu.a ../libelf/libelf.so libdw_so_DEPS = ../lib/libeu.a ../libelf/libelf.so
@@ -78,9 +96,11 @@ Upstream-Status: Inappropriate [workaround for musl]
libdw_so_SOURCES = libdw_so_SOURCES =
libdw.so$(EXEEXT): $(srcdir)/libdw.map $(libdw_so_LIBS) $(libdw_so_DEPS) libdw.so$(EXEEXT): $(srcdir)/libdw.map $(libdw_so_LIBS) $(libdw_so_DEPS)
# The rpath is necessary for libebl because its $ORIGIN use will # The rpath is necessary for libebl because its $ORIGIN use will
diff --git a/src/Makefile.am b/src/Makefile.am
index b72f853..2f3dfce 100644
--- a/src/Makefile.am --- a/src/Makefile.am
+++ b/src/Makefile.am +++ b/src/Makefile.am
@@ -68,8 +68,8 @@ ar_no_Wstack_usage = yes @@ -69,8 +69,8 @@ ar_no_Wstack_usage = yes
unstrip_no_Wstack_usage = yes unstrip_no_Wstack_usage = yes
readelf_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) $(argp_LDADD) -ldl readelf_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) $(argp_LDADD) -ldl
@@ -91,7 +111,7 @@ Upstream-Status: Inappropriate [workaround for musl]
size_LDADD = $(libelf) $(libeu) $(argp_LDADD) size_LDADD = $(libelf) $(libeu) $(argp_LDADD)
strip_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(argp_LDADD) -ldl strip_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(argp_LDADD) -ldl
elflint_LDADD = $(libebl) $(libelf) $(libeu) $(argp_LDADD) -ldl elflint_LDADD = $(libebl) $(libelf) $(libeu) $(argp_LDADD) -ldl
@@ -77,9 +77,9 @@ findtextrel_LDADD = $(libdw) $(libelf) $ @@ -78,9 +78,9 @@ findtextrel_LDADD = $(libdw) $(libelf) $(libeu) $(argp_LDADD)
addr2line_LDADD = $(libdw) $(libelf) $(libeu) $(argp_LDADD) $(demanglelib) addr2line_LDADD = $(libdw) $(libelf) $(libeu) $(argp_LDADD) $(demanglelib)
elfcmp_LDADD = $(libebl) $(libelf) $(libeu) $(argp_LDADD) -ldl elfcmp_LDADD = $(libebl) $(libelf) $(libeu) $(argp_LDADD) -ldl
objdump_LDADD = $(libasm) $(libebl) $(libelf) $(libeu) $(argp_LDADD) -ldl objdump_LDADD = $(libasm) $(libebl) $(libelf) $(libeu) $(argp_LDADD) -ldl
@@ -103,3 +123,6 @@ Upstream-Status: Inappropriate [workaround for musl]
unstrip_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(argp_LDADD) -ldl unstrip_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(argp_LDADD) -ldl
stack_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(argp_LDADD) -ldl $(demanglelib) stack_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(argp_LDADD) -ldl $(demanglelib)
elfcompress_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(argp_LDADD) elfcompress_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(argp_LDADD)
--
2.7.4
@@ -1,3 +1,8 @@
From 7f5e2fd86d54e0a4d195ec65afb9b411829dff9f Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Fri, 23 Aug 2019 10:19:48 +0800
Subject: [PATCH 3/3] musl-utils
Provide missing defines which otherwise are available on glibc system headers Provide missing defines which otherwise are available on glibc system headers
Alter the error API to match posix version Alter the error API to match posix version
@@ -5,6 +10,19 @@ use qsort instead of qsort_r which is glibc specific API
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Upstream-Status: Inappropriate [workaround for musl] Upstream-Status: Inappropriate [workaround for musl]
Rebase to 0.177
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
src/arlib.h | 6 ++++++
src/elfcompress.c | 7 +++++++
src/readelf.c | 20 ++++++++++++--------
src/strip.c | 7 +++++++
src/unstrip.c | 9 +++++++++
5 files changed, 41 insertions(+), 8 deletions(-)
diff --git a/src/arlib.h b/src/arlib.h
index e117166..8326f6c 100644
--- a/src/arlib.h --- a/src/arlib.h
+++ b/src/arlib.h +++ b/src/arlib.h
@@ -29,6 +29,12 @@ @@ -29,6 +29,12 @@
@@ -20,6 +38,8 @@ Upstream-Status: Inappropriate [workaround for musl]
/* State of -D/-U flags. */ /* State of -D/-U flags. */
extern bool arlib_deterministic_output; extern bool arlib_deterministic_output;
diff --git a/src/elfcompress.c b/src/elfcompress.c
index 6ba6af4..0c7674b 100644
--- a/src/elfcompress.c --- a/src/elfcompress.c
+++ b/src/elfcompress.c +++ b/src/elfcompress.c
@@ -37,6 +37,13 @@ @@ -37,6 +37,13 @@
@@ -36,9 +56,11 @@ Upstream-Status: Inappropriate [workaround for musl]
/* Name and version of program. */ /* Name and version of program. */
ARGP_PROGRAM_VERSION_HOOK_DEF = print_version; ARGP_PROGRAM_VERSION_HOOK_DEF = print_version;
diff --git a/src/readelf.c b/src/readelf.c
index 5c02a9b..817562d 100644
--- a/src/readelf.c --- a/src/readelf.c
+++ b/src/readelf.c +++ b/src/readelf.c
@@ -4792,10 +4792,11 @@ listptr_base (struct listptr *p) @@ -4813,10 +4813,11 @@ listptr_base (struct listptr *p)
return cudie_base (&cu); return cudie_base (&cu);
} }
@@ -52,7 +74,7 @@ Upstream-Status: Inappropriate [workaround for musl]
struct listptr *p1 = (void *) a; struct listptr *p1 = (void *) a;
struct listptr *p2 = (void *) b; struct listptr *p2 = (void *) b;
@@ -4811,21 +4812,21 @@ compare_listptr (const void *a, const vo @@ -4832,21 +4833,21 @@ compare_listptr (const void *a, const void *b, void *arg)
p1->warned = p2->warned = true; p1->warned = p2->warned = true;
error (0, 0, error (0, 0,
gettext ("%s %#" PRIx64 " used with different address sizes"), gettext ("%s %#" PRIx64 " used with different address sizes"),
@@ -77,7 +99,7 @@ Upstream-Status: Inappropriate [workaround for musl]
} }
if (p1->attr != p2 ->attr) if (p1->attr != p2 ->attr)
{ {
@@ -4833,7 +4834,7 @@ compare_listptr (const void *a, const vo @@ -4854,7 +4855,7 @@ compare_listptr (const void *a, const void *b, void *arg)
error (0, 0, error (0, 0,
gettext ("%s %#" PRIx64 gettext ("%s %#" PRIx64
" used with different attribute %s and %s"), " used with different attribute %s and %s"),
@@ -86,7 +108,7 @@ Upstream-Status: Inappropriate [workaround for musl]
dwarf_attr_name (p2->attr)); dwarf_attr_name (p2->attr));
} }
} }
@@ -4905,8 +4906,11 @@ static void @@ -4926,8 +4927,11 @@ static void
sort_listptr (struct listptr_table *table, const char *name) sort_listptr (struct listptr_table *table, const char *name)
{ {
if (table->n > 0) if (table->n > 0)
@@ -100,6 +122,8 @@ Upstream-Status: Inappropriate [workaround for musl]
} }
static bool static bool
diff --git a/src/strip.c b/src/strip.c
index 4054c2a..d2d2176 100644
--- a/src/strip.c --- a/src/strip.c
+++ b/src/strip.c +++ b/src/strip.c
@@ -46,6 +46,13 @@ @@ -46,6 +46,13 @@
@@ -116,6 +140,8 @@ Upstream-Status: Inappropriate [workaround for musl]
typedef uint8_t GElf_Byte; typedef uint8_t GElf_Byte;
/* Name and version of program. */ /* Name and version of program. */
diff --git a/src/unstrip.c b/src/unstrip.c
index fc87832..21ea6b3 100644
--- a/src/unstrip.c --- a/src/unstrip.c
+++ b/src/unstrip.c +++ b/src/unstrip.c
@@ -56,6 +56,15 @@ @@ -56,6 +56,15 @@
@@ -134,3 +160,6 @@ Upstream-Status: Inappropriate [workaround for musl]
/* Name and version of program. */ /* Name and version of program. */
ARGP_PROGRAM_VERSION_HOOK_DEF = print_version; ARGP_PROGRAM_VERSION_HOOK_DEF = print_version;
--
2.7.4