1 --- a/libdw/libdw_alloc.c
2 +++ b/libdw/libdw_alloc.c
3 @@ -152,5 +152,5 @@ __attribute ((noreturn)) attribute_hidde
7 - error (EXIT_FAILURE, ENOMEM, "libdw");
8 + error (EXIT_FAILURE, errno, gettext ("cannot allocate memory"));
10 --- a/libdwfl/dwfl_error.c
11 +++ b/libdwfl/dwfl_error.c
12 @@ -140,6 +140,7 @@ __libdwfl_seterrno (Dwfl_Error error)
16 +#if defined(__GLIBC__) && !defined(__UCLIBC__)
17 /* Won't be changed by strerror_r, but not const so compiler doesn't throw warning */
18 static char unknown[] = "unknown error";
20 @@ -150,6 +151,9 @@ errnomsg(int error)
21 static __thread char msg[128];
22 return strerror_r (error, msg, sizeof (msg)) ? unknown : msg;
25 + return strerror (error & 0xffff);