diff options
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 | |||