M7350v1_en_gpl

This commit is contained in:
T
2024-09-09 08:52:07 +00:00
commit f9cc65cfda
65988 changed files with 26357421 additions and 0 deletions
@@ -0,0 +1,19 @@
Get the version of mklibs by simpler means. The MKLIBS_VERSION string in the
configure.ac file is replaced with real version string by the
do_configure_prepend() function from the recipe .bb file.
Upstream-Status: Inappropriate [configuration]
Nitin A Kamble <nitin.a.kamble@intel.com>
Date: 2011/01/24
Index: mklibs/configure.ac
===================================================================
--- mklibs.orig/configure.ac 2010-02-21 17:34:56.000000000 -0800
+++ mklibs/configure.ac 2011-01-24 18:52:19.943242079 -0800
@@ -1,4 +1,4 @@
-AC_INIT([mklibs],m4_esyscmd(dpkg-parsechangelog | perl -ne 'print $1 if m/^Version: (.*)$/;'))
+AC_INIT([mklibs], MKLIBS_VERSION)
AM_INIT_AUTOMAKE([foreign no-define])
AC_CONFIG_HEADERS([config.h])
AM_MAINTAINER_MODE
@@ -0,0 +1,26 @@
The libc6-dev in Ubuntu 9.04 is so old that the elf.h doesn't
define STT_GNU_IFUNC, so we have to define it ourselves.
Upstream-Status: Inappropriate [other] - old release specific, maybe removable
-- Dexuan Cui (dexuan.cui@intel.com) Feb 16, 2011.
diff --git a/src/mklibs-readelf/main.cpp b/src/mklibs-readelf/main.cpp
index 2444c39..56d93f8 100644
--- a/src/mklibs-readelf/main.cpp
+++ b/src/mklibs-readelf/main.cpp
@@ -6,6 +6,14 @@
#include <vector>
#include <elf.h>
+/*
+ * The /usr/include/elf.h in some distributions(like Ubuntu 9.04) doesn't
+ * define the macro. We need to define it here.
+ */
+#ifndef STT_GNU_IFUNC
+#define STT_GNU_IFUNC 10 /* Symbol is indirect code object */
+#endif
+
#include <getopt.h>
#include "elf.hpp"