diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2011-07-07 06:29:51 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-08 16:39:10 +0100 |
commit | 2c81d95059544fa792f40644d5bc1633f0626a1b (patch) | |
tree | d2ed8cf11ed6a2d64d2823f974709753db27ddb2 /meta/recipes-devtools/elfutils/elfutils/mempcpy.patch | |
parent | 860d8fdd276014d0d5e379993c4ac355176df6ca (diff) | |
download | poky-2c81d95059544fa792f40644d5bc1633f0626a1b.tar.gz |
elfutils: fix compilations issue with the gcc 4.7
(From OE-Core rev: 291483a20933cc70a49c2acadc9891bea2158564)
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/elfutils/elfutils/mempcpy.patch')
-rw-r--r-- | meta/recipes-devtools/elfutils/elfutils/mempcpy.patch | 25 |
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 @@ | |||
1 | Upstream-Status: Backport | ||
2 | |||
3 | uclibc does not export __mempcpy like glibc so we alias it here. | ||
4 | This patch may make sense for upstream but elfutils uses more | ||
5 | glibc specific features like obstack_printf which are missing in | ||
6 | uclibc they need to be fixed along to make it work all the way | ||
7 | |||
8 | Upstream-Status: Inappropriate[Elfutils uses more glibc specific features] | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | |||
12 | Index: 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 * | ||