summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-07 10:46:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-07 11:55:38 +0000
commit034618dbee7e6bc60a746f9d64188763faa31c37 (patch)
treea459956d8fb8a97b4106eddb75baf89b10b3f332 /meta
parent8dca34317806d3a44aa1bd015e2db833bd73280a (diff)
downloadpoky-034618dbee7e6bc60a746f9d64188763faa31c37.tar.gz
glibc: Add relocation of GCONV_PATH
We're seeing various failures where nativesdk glibc can't find the gconv modules. We've tried various workaround but this needs fixing 'properly'. One significant problem is knowing when a binary would use this glibc and hence when to set the path and when not to. Add the default path to its own special section which the sdk relocation script already knows how to handle and remap. This significantly improves the usability of uninative. (From OE-Core rev: d40cb4a359dbc5d762fabd996c29e468f5398dd9) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/glibc/glibc/0003-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch16
1 files changed, 13 insertions, 3 deletions
diff --git a/meta/recipes-core/glibc/glibc/0003-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch b/meta/recipes-core/glibc/glibc/0003-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch
index dde94b450c..60f9f17b89 100644
--- a/meta/recipes-core/glibc/glibc/0003-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch
+++ b/meta/recipes-core/glibc/glibc/0003-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch
@@ -121,6 +121,16 @@ index 70d4aeb..5c726d0 100644
121 #ifndef add_system_dir 121 #ifndef add_system_dir
122 # define add_system_dir(dir) add_dir (dir) 122 # define add_system_dir(dir) add_dir (dir)
123 #endif 123 #endif
124-- 124Index: git/iconv/gconv_conf.c
1252.6.4 125===================================================================
126 126--- git.orig/iconv/gconv_conf.c
127+++ git/iconv/gconv_conf.c
128@@ -36,7 +36,7 @@
129
130
131 /* This is the default path where we look for module lists. */
132-static const char default_gconv_path[] = GCONV_PATH;
133+static char default_gconv_path[4096] __attribute__ ((section (".gccrelocprefix"))) = GCONV_PATH;
134
135 /* The path elements, as determined by the __gconv_get_path function.
136 All path elements end in a slash. */