projects
/
openwrt
/
staging
/
chunkeey.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
elfutils: bump to 0.164
[openwrt/staging/chunkeey.git]
/
package
/
libs
/
elfutils
/
patches
/
100-musl-compat.patch
diff --git
a/package/libs/elfutils/patches/100-musl-compat.patch
b/package/libs/elfutils/patches/100-musl-compat.patch
index a16f25addb2da77fb32bd8d8e2358b1879fcf48f..7427e9a762cc9df3b9cafb87d46294d6858ae3ee 100644
(file)
--- a/
package/libs/elfutils/patches/100-musl-compat.patch
+++ b/
package/libs/elfutils/patches/100-musl-compat.patch
@@
-311,7
+311,7
@@
+#include <err.h>
#include <unistd.h>
#include <dwarf.h>
+#include <err.h>
#include <unistd.h>
#include <dwarf.h>
- #i
nclude <sys/resource.h>
+ #i
fdef __linux__
--- a/tests/backtrace-data.c
+++ b/tests/backtrace-data.c
@@ -27,7 +27,7 @@
--- a/tests/backtrace-data.c
+++ b/tests/backtrace-data.c
@@ -27,7 +27,7 @@
@@
-322,7
+322,7
@@
+#include <err.h>
#include <unistd.h>
#include <dwarf.h>
+#include <err.h>
#include <unistd.h>
#include <dwarf.h>
- #i
nclude <sys/resource.h>
+ #i
f defined(__x86_64__) && defined(__linux__)
--- a/tests/buildid.c
+++ b/tests/buildid.c
@@ -23,7 +23,7 @@
--- a/tests/buildid.c
+++ b/tests/buildid.c
@@ -23,7 +23,7 @@
@@
-457,8
+457,8
@@
#include <stdio.h>
--- a/tests/ecp.c
+++ b/tests/ecp.c
#include <stdio.h>
--- a/tests/ecp.c
+++ b/tests/ecp.c
-@@ -
16,7 +16
,7 @@
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
+@@ -
20,7 +20
,7 @@
+ #endif
#include <errno.h>
-#include <error.h>
#include <errno.h>
-#include <error.h>
@@
-534,8
+534,8
@@
#include "sha1.h"
--- a/tests/rdwrmmap.c
+++ b/tests/rdwrmmap.c
#include "sha1.h"
--- a/tests/rdwrmmap.c
+++ b/tests/rdwrmmap.c
-@@ -1
5,7 +15
,7 @@
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
+@@ -1
9,7 +19
,7 @@
+ #endif
#include <errno.h>
-#include <error.h>
#include <errno.h>
-#include <error.h>
@@
-583,9
+583,9
@@
#define _LIBELF_H 1
+#include <fcntl.h>
#define _LIBELF_H 1
+#include <fcntl.h>
+ #include <stdint.h>
#include <sys/types.h>
#include <sys/types.h>
- /* Get the ELF types. */
--- a/libasm/asm_end.c
+++ b/libasm/asm_end.c
@@ -32,7 +32,7 @@
--- a/libasm/asm_end.c
+++ b/libasm/asm_end.c
@@ -32,7 +32,7 @@
@@
-705,15
+705,15
@@
for (subs = nodep->next; subs != NULL; subs = subs->next)
--- a/libdwfl/dwfl_error.c
+++ b/libdwfl/dwfl_error.c
for (subs = nodep->next; subs != NULL; subs = subs->next)
--- a/libdwfl/dwfl_error.c
+++ b/libdwfl/dwfl_error.c
-@@ -14
1,6 +141,7 @@ const char *
- dwfl_errmsg (error)
- int error;
+@@ -14
0,6 +140,7 @@ __libdwfl_seterrno (Dwfl_Error error)
+ const char *
+ dwfl_errmsg (int error)
{
+ static __thread char s[64] = "";
if (error == 0 || error == -1)
{
int last_error = global_error;
{
+ static __thread char s[64] = "";
if (error == 0 || error == -1)
{
int last_error = global_error;
-@@ -15
5,7 +156,8 @@ dwfl_errmsg (
error)
+@@ -15
4,7 +155,8 @@ dwfl_errmsg (int
error)
switch (error &~ 0xffff)
{
case OTHER_ERROR (ERRNO):
switch (error &~ 0xffff)
{
case OTHER_ERROR (ERRNO):
@@
-755,7
+755,7
@@
typedef struct Dwfl Dwfl;
--- a/libdwfl/find-debuginfo.c
+++ b/libdwfl/find-debuginfo.c
typedef struct Dwfl Dwfl;
--- a/libdwfl/find-debuginfo.c
+++ b/libdwfl/find-debuginfo.c
-@@ -3
61,7 +361
,7 @@ dwfl_standard_find_debuginfo (Dwfl_Modul
+@@ -3
72,7 +372
,7 @@ dwfl_standard_find_debuginfo (Dwfl_Modul
/* If FILE_NAME is a symlink, the debug file might be associated
with the symlink target name instead. */
/* If FILE_NAME is a symlink, the debug file might be associated
with the symlink target name instead. */
@@
-777,8
+777,8
@@
*file_name = name;
--- a/libelf/elf_getarsym.c
+++ b/libelf/elf_getarsym.c
*file_name = name;
--- a/libelf/elf_getarsym.c
+++ b/libelf/elf_getarsym.c
-@@ -
301,7 +301,7 @@ elf_getarsym (elf,
ptr)
- arsym[cnt].as_off =
file_data->u32
[cnt];
+@@ -
297,7 +297,7 @@ elf_getarsym (Elf *elf, size_t *
ptr)
+ arsym[cnt].as_off =
(*u32)
[cnt];
arsym[cnt].as_hash = _dl_elf_hash (str_data);
- str_data = rawmemchr (str_data, '\0') + 1;
arsym[cnt].as_hash = _dl_elf_hash (str_data);
- str_data = rawmemchr (str_data, '\0') + 1;