summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/mklibs/files/fix_STT_GNU_IFUNC.patch
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-16 03:05:19 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-16 03:05:19 +0200
commitc527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch)
treebb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-devtools/mklibs/files/fix_STT_GNU_IFUNC.patch
downloadpoky-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-devtools/mklibs/files/fix_STT_GNU_IFUNC.patch')
-rw-r--r--meta/recipes-devtools/mklibs/files/fix_STT_GNU_IFUNC.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-devtools/mklibs/files/fix_STT_GNU_IFUNC.patch b/meta/recipes-devtools/mklibs/files/fix_STT_GNU_IFUNC.patch
new file mode 100644
index 0000000000..d27a48916d
--- /dev/null
+++ b/meta/recipes-devtools/mklibs/files/fix_STT_GNU_IFUNC.patch
@@ -0,0 +1,26 @@
1The libc6-dev in Ubuntu 9.04 is so old that the elf.h doesn't
2define STT_GNU_IFUNC, so we have to define it ourselves.
3
4Upstream-Status: Inappropriate [other] - old release specific, maybe removable
5
6-- Dexuan Cui (dexuan.cui@intel.com) Feb 16, 2011.
7
8diff --git a/src/mklibs-readelf/main.cpp b/src/mklibs-readelf/main.cpp
9index 2444c39..56d93f8 100644
10--- a/src/mklibs-readelf/main.cpp
11+++ b/src/mklibs-readelf/main.cpp
12@@ -6,6 +6,14 @@
13 #include <vector>
14
15 #include <elf.h>
16+/*
17+ * The /usr/include/elf.h in some distributions(like Ubuntu 9.04) doesn't
18+ * define the macro. We need to define it here.
19+ */
20+#ifndef STT_GNU_IFUNC
21+#define STT_GNU_IFUNC 10 /* Symbol is indirect code object */
22+#endif
23+
24 #include <getopt.h>
25
26 #include "elf.hpp"