summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/elfutils/elfutils/mempcpy.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/elfutils/elfutils/mempcpy.patch')
-rw-r--r--meta/recipes-devtools/elfutils/elfutils/mempcpy.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils/mempcpy.patch b/meta/recipes-devtools/elfutils/elfutils/mempcpy.patch
new file mode 100644
index 0000000000..218a57bd84
--- /dev/null
+++ b/meta/recipes-devtools/elfutils/elfutils/mempcpy.patch
@@ -0,0 +1,25 @@
1Upstream-Status: Backport
2
3uclibc does not export __mempcpy like glibc so we alias it here.
4This patch may make sense for upstream but elfutils uses more
5glibc specific features like obstack_printf which are missing in
6uclibc they need to be fixed along to make it work all the way
7
8Upstream-Status: Inappropriate[Elfutils uses more glibc specific features]
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11
12Index: elfutils-0.148/libelf/elf_begin.c
13===================================================================
14--- elfutils-0.148.orig/libelf/elf_begin.c
15+++ elfutils-0.148/libelf/elf_begin.c
16@@ -68,6 +68,9 @@
17 #include "libelfP.h"
18 #include "common.h"
19
20+#ifdef __UCLIBC__
21+#define __mempcpy mempcpy
22+#endif
23
24 /* Create descriptor for archive in memory. */
25 static inline Elf *