mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
6835ea13f0
Upstreamed patches (deleted): 0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch - https://sourceware.org/git/?p=elfutils.git;a=commitdiff;h=8382833a257b57b0d288be07d2d5e7af6c102869 110-no-cdefs.patch - https://sourceware.org/git/?p=elfutils.git;a=commitdiff;h=d390548df1942e98a1d836269a5e41ba52e121f1 Auto-refreshed: 006-Fix-build-on-aarch64-musl.patch 101-no-fts.patch Manually updated and refreshed: 005-build_only_libs.patch 003-libintl-compatibility.patch 100-musl-compat.patch Disabled _obstack_free check (via configure vars) Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
30 lines
824 B
Diff
30 lines
824 B
Diff
--- a/libdw/libdw_alloc.c
|
|
+++ b/libdw/libdw_alloc.c
|
|
@@ -152,5 +152,5 @@ __attribute ((noreturn)) attribute_hidde
|
|
__libdw_oom (void)
|
|
{
|
|
while (1)
|
|
- error (EXIT_FAILURE, ENOMEM, "libdw");
|
|
+ error (EXIT_FAILURE, errno, gettext ("cannot allocate memory"));
|
|
}
|
|
--- a/libdwfl/dwfl_error.c
|
|
+++ b/libdwfl/dwfl_error.c
|
|
@@ -140,6 +140,7 @@ __libdwfl_seterrno (Dwfl_Error error)
|
|
static const char *
|
|
errnomsg(int error)
|
|
{
|
|
+#if defined(__GLIBC__) && !defined(__UCLIBC__)
|
|
/* Won't be changed by strerror_r, but not const so compiler doesn't throw warning */
|
|
static char unknown[] = "unknown error";
|
|
|
|
@@ -150,6 +151,9 @@ errnomsg(int error)
|
|
static __thread char msg[128];
|
|
return strerror_r (error, msg, sizeof (msg)) ? unknown : msg;
|
|
#endif
|
|
+#else
|
|
+ return strerror (error & 0xffff);
|
|
+#endif
|
|
}
|
|
|
|
const char *
|