diff options
author | Yuanjie Huang <yuanjie.huang@windriver.com> | 2015-07-03 13:42:31 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-08 00:01:23 +0100 |
commit | 389d010b9a0a158299045befb0259b5131d5666f (patch) | |
tree | 510d96c6c9cee809cec4fe4587ea5c0b880eb161 /meta/recipes-devtools/mklibs/files/show-GNU-unique-symbols-as-provided-symbols.patch | |
parent | abe6459c28a8e30ab6a9da76f27370c24c4746ee (diff) | |
download | poky-389d010b9a0a158299045befb0259b5131d5666f.tar.gz |
mklibs-native: two fixes
1. Show GNU unique symbols as provided symbols
2. Remove dependency on dpkg
Both have been submitted to mklibs maillist:
https://lists.debian.org/debian-boot/2015/07/msg00018.html
https://lists.debian.org/debian-boot/2015/07/msg00004.html
(From OE-Core rev: b18618a85e3e1483832d525115dafcd7d9be4b65)
Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/mklibs/files/show-GNU-unique-symbols-as-provided-symbols.patch')
-rw-r--r-- | meta/recipes-devtools/mklibs/files/show-GNU-unique-symbols-as-provided-symbols.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-devtools/mklibs/files/show-GNU-unique-symbols-as-provided-symbols.patch b/meta/recipes-devtools/mklibs/files/show-GNU-unique-symbols-as-provided-symbols.patch new file mode 100644 index 0000000000..3f14ca1e75 --- /dev/null +++ b/meta/recipes-devtools/mklibs/files/show-GNU-unique-symbols-as-provided-symbols.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From eddf04c7f8312e9c29cdb24e431b7e4fb2cc70ed Mon Sep 17 00:00:00 2001 | ||
2 | From: Yuanjie Huang <yuanjie.huang@windriver.com> | ||
3 | Date: Wed, 15 Apr 2015 14:00:06 +0800 | ||
4 | Subject: [PATCH] Show GNU unique symbols as provided symbols | ||
5 | |||
6 | Upstream-Status Submitted | ||
7 | |||
8 | GNU Unique symbol is a GNU extension employed by new version of GCC | ||
9 | by default. Even Standard C++ library in GCC 4.9 provides some symbols, | ||
10 | such as _ZNSs4_Rep20_S_empty_rep_storageE in this binding type instead | ||
11 | of ELF standard weak binding. | ||
12 | This patch adds support of this new binding type to mklibs-readelf. | ||
13 | |||
14 | Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com> | ||
15 | --- | ||
16 | src/mklibs-readelf/main.cpp | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/src/mklibs-readelf/main.cpp b/src/mklibs-readelf/main.cpp | ||
20 | index 56d93f8..0134530 100644 | ||
21 | --- a/src/mklibs-readelf/main.cpp | ||
22 | +++ b/src/mklibs-readelf/main.cpp | ||
23 | @@ -88,7 +88,7 @@ static void process_symbols_provided (const Elf::section_type<Elf::section_type_ | ||
24 | uint8_t type = symbol->get_type (); | ||
25 | const std::string &name = symbol->get_name_string (); | ||
26 | |||
27 | - if (bind != STB_GLOBAL && bind != STB_WEAK) | ||
28 | + if (bind != STB_GLOBAL && bind != STB_WEAK && bind != STB_GNU_UNIQUE) | ||
29 | continue; | ||
30 | if (shndx == SHN_UNDEF || shndx == SHN_ABS) | ||
31 | continue; | ||
32 | -- | ||
33 | 1.8.5.2.233.g932f7e4 | ||
34 | |||