chiark / gitweb /
76dd5c87836630b80b3853eea7bfdd7f371e569e
[termux-packages] / packages / libelf / readelf.c.patch
1 diff -u -r ../elfutils-0.166/src/readelf.c ./src/readelf.c
2 --- ../elfutils-0.166/src/readelf.c     2016-03-02 11:25:38.000000000 -0500
3 +++ ./src/readelf.c     2016-05-04 14:13:42.967553723 -0400
4 @@ -43,6 +43,7 @@
5  #include <sys/param.h>
6  #include <sys/stat.h>
7  #include <signal.h>
8 +#include <qsort_r.h>
9  
10  #include <system.h>
11  #include "../libelf/libelfP.h"
12 @@ -6128,7 +6129,7 @@
13  
14        printf ("           %*s%-20s (%s) %s\n",
15               (int) (level * 2), "", dwarf_attr_name (attr),
16 -             dwarf_form_name (form), nl_langinfo (flag ? YESSTR : NOSTR));
17 +             dwarf_form_name (form), flag ? "yes" : "no");
18        break;
19  
20      case DW_FORM_flag_present:
21 @@ -6136,7 +6137,7 @@
22         break;
23        printf ("           %*s%-20s (%s) %s\n",
24               (int) (level * 2), "", dwarf_attr_name (attr),
25 -             dwarf_form_name (form), nl_langinfo (YESSTR));
26 +             dwarf_form_name (form), "yes");
27        break;
28  
29      case DW_FORM_exprloc:
30 @@ -7646,7 +7647,7 @@
31                       if (readp + 1 > readendp)
32                         goto invalid_data;
33                       val = *readp++;
34 -                     printf (" %s", nl_langinfo (val != 0 ? YESSTR : NOSTR));
35 +                     printf (" %s", val != 0 ? "yes" : "no");
36                       break;
37  
38                     case DW_FORM_string: