summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/glibc/0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-02-04 21:41:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-05 12:00:54 +0000
commit7b8df042d0c175388d6230f008b1c83d5c5cd5da (patch)
treeeffa543d93952e198887369a11b9667d94599349 /meta/recipes-core/glibc/glibc/0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch
parent77d9b5f02aec991540926fe144076e122c17f64d (diff)
downloadpoky-7b8df042d0c175388d6230f008b1c83d5c5cd5da.tar.gz
glibc: Upgrade to 2.33
Drop backported patches (From OE-Core rev: aa87638cf4f2bef66df92f961c7814f6b482fd3d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glibc/glibc/0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch')
-rw-r--r--meta/recipes-core/glibc/glibc/0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch88
1 files changed, 50 insertions, 38 deletions
diff --git a/meta/recipes-core/glibc/glibc/0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch b/meta/recipes-core/glibc/glibc/0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch
index 2073576aac..197caae921 100644
--- a/meta/recipes-core/glibc/glibc/0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch
+++ b/meta/recipes-core/glibc/glibc/0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch
@@ -1,8 +1,7 @@
1From 19cd858f5f04a6ac584fbd89a2fbc51791263b85 Mon Sep 17 00:00:00 2001 1From 3ea08e491a8494ff03e598b5e0fc2d8131e75da9 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 18 Mar 2015 01:51:38 +0000 3Date: Wed, 18 Mar 2015 01:51:38 +0000
4Subject: [PATCH 05/29] nativesdk-glibc: Raise the size of arrays containing dl 4Subject: [PATCH] nativesdk-glibc: Raise the size of arrays containing dl paths
5 paths
6 5
7This patch puts the dynamic loader path in the binaries, SYSTEM_DIRS strings 6This patch puts the dynamic loader path in the binaries, SYSTEM_DIRS strings
8and lengths as well as ld.so.cache path in the dynamic loader to specific 7and lengths as well as ld.so.cache path in the dynamic loader to specific
@@ -18,20 +17,21 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
18--- 17---
19 elf/dl-cache.c | 4 ++++ 18 elf/dl-cache.c | 4 ++++
20 elf/dl-load.c | 4 ++-- 19 elf/dl-load.c | 4 ++--
20 elf/dl-usage.c | 6 ++++--
21 elf/interp.c | 2 +- 21 elf/interp.c | 2 +-
22 elf/ldconfig.c | 3 +++ 22 elf/ldconfig.c | 3 +++
23 elf/rtld.c | 5 +++-- 23 elf/rtld.c | 1 +
24 iconv/gconv_conf.c | 2 +- 24 iconv/gconv_conf.c | 2 +-
25 sysdeps/generic/dl-cache.h | 4 ---- 25 sysdeps/generic/dl-cache.h | 4 ----
26 7 files changed, 14 insertions(+), 10 deletions(-) 26 8 files changed, 16 insertions(+), 10 deletions(-)
27 27
28diff --git a/elf/dl-cache.c b/elf/dl-cache.c 28diff --git a/elf/dl-cache.c b/elf/dl-cache.c
29index 93d185e788..e115b18756 100644 29index 32f3bef5ea..71f3a82dc0 100644
30--- a/elf/dl-cache.c 30--- a/elf/dl-cache.c
31+++ b/elf/dl-cache.c 31+++ b/elf/dl-cache.c
32@@ -133,6 +133,10 @@ do \ 32@@ -359,6 +359,10 @@ search_cache (const char *string_table, uint32_t string_table_size,
33 while (0) 33 return best;
34 34 }
35 35
36+const char LD_SO_CACHE[4096] __attribute__ ((section (".ldsocache"))) = 36+const char LD_SO_CACHE[4096] __attribute__ ((section (".ldsocache"))) =
37+ SYSCONFDIR "/ld.so.cache"; 37+ SYSCONFDIR "/ld.so.cache";
@@ -41,10 +41,10 @@ index 93d185e788..e115b18756 100644
41 _dl_cache_libcmp (const char *p1, const char *p2) 41 _dl_cache_libcmp (const char *p1, const char *p2)
42 { 42 {
43diff --git a/elf/dl-load.c b/elf/dl-load.c 43diff --git a/elf/dl-load.c b/elf/dl-load.c
44index e1b3486549..5226d0c4fa 100644 44index f455207e79..a144e24fcf 100644
45--- a/elf/dl-load.c 45--- a/elf/dl-load.c
46+++ b/elf/dl-load.c 46+++ b/elf/dl-load.c
47@@ -111,8 +111,8 @@ static size_t max_capstrlen attribute_relro; 47@@ -115,8 +115,8 @@ enum { ncapstr = 1, max_capstrlen = 0 };
48 gen-trusted-dirs.awk. */ 48 gen-trusted-dirs.awk. */
49 #include "trusted-dirs.h" 49 #include "trusted-dirs.h"
50 50
@@ -55,8 +55,39 @@ index e1b3486549..5226d0c4fa 100644
55 { 55 {
56 SYSTEM_DIRS_LEN 56 SYSTEM_DIRS_LEN
57 }; 57 };
58diff --git a/elf/dl-usage.c b/elf/dl-usage.c
59index 6e26818bd7..f09e8b93e5 100644
60--- a/elf/dl-usage.c
61+++ b/elf/dl-usage.c
62@@ -25,6 +25,8 @@
63 #include <dl-procinfo.h>
64 #include <dl-hwcaps.h>
65
66+extern const char LD_SO_CACHE[4096] __attribute__ ((section (".ldsocache")));
67+
68 void
69 _dl_usage (const char *argv0, const char *wrong_option)
70 {
71@@ -244,7 +246,7 @@ setting environment variables (which would be inherited by subprocesses).\n\
72 --list list all dependencies and how they are resolved\n\
73 --verify verify that given object really is a dynamically linked\n\
74 object we can handle\n\
75- --inhibit-cache Do not use " LD_SO_CACHE "\n\
76+ --inhibit-cache Do not use %s\n\
77 --library-path PATH use given PATH instead of content of the environment\n\
78 variable LD_LIBRARY_PATH\n\
79 --glibc-hwcaps-prepend LIST\n\
80@@ -266,7 +268,7 @@ setting environment variables (which would be inherited by subprocesses).\n\
81 \n\
82 This program interpreter self-identifies as: " RTLD "\n\
83 ",
84- argv0);
85+ argv0, LD_SO_CACHE);
86 print_search_path_for_help (state);
87 print_hwcaps_subdirectories (state);
88 print_legacy_hwcap_directories ();
58diff --git a/elf/interp.c b/elf/interp.c 89diff --git a/elf/interp.c b/elf/interp.c
59index 331cc1df48..885b2d9476 100644 90index 91966702ca..dc86c20e83 100644
60--- a/elf/interp.c 91--- a/elf/interp.c
61+++ b/elf/interp.c 92+++ b/elf/interp.c
62@@ -18,5 +18,5 @@ 93@@ -18,5 +18,5 @@
@@ -67,10 +98,10 @@ index 331cc1df48..885b2d9476 100644
67+const char __invoke_dynamic_linker__[4096] __attribute__ ((section (".interp"))) 98+const char __invoke_dynamic_linker__[4096] __attribute__ ((section (".interp")))
68 = RUNTIME_LINKER; 99 = RUNTIME_LINKER;
69diff --git a/elf/ldconfig.c b/elf/ldconfig.c 100diff --git a/elf/ldconfig.c b/elf/ldconfig.c
70index 0c090dca15..6bb6e0fe72 100644 101index 28ed637a29..5d38a60c5d 100644
71--- a/elf/ldconfig.c 102--- a/elf/ldconfig.c
72+++ b/elf/ldconfig.c 103+++ b/elf/ldconfig.c
73@@ -171,6 +171,9 @@ static struct argp argp = 104@@ -176,6 +176,9 @@ static struct argp argp =
74 options, parse_opt, NULL, doc, NULL, more_help, NULL 105 options, parse_opt, NULL, doc, NULL, more_help, NULL
75 }; 106 };
76 107
@@ -81,10 +112,10 @@ index 0c090dca15..6bb6e0fe72 100644
81 a platform. */ 112 a platform. */
82 static int 113 static int
83diff --git a/elf/rtld.c b/elf/rtld.c 114diff --git a/elf/rtld.c b/elf/rtld.c
84index 5b882163fa..db407b5d8b 100644 115index 596b6ac3d9..1ccd33f668 100644
85--- a/elf/rtld.c 116--- a/elf/rtld.c
86+++ b/elf/rtld.c 117+++ b/elf/rtld.c
87@@ -217,6 +217,7 @@ dso_name_valid_for_suid (const char *p) 118@@ -185,6 +185,7 @@ dso_name_valid_for_suid (const char *p)
88 } 119 }
89 return *p != '\0'; 120 return *p != '\0';
90 } 121 }
@@ -92,24 +123,8 @@ index 5b882163fa..db407b5d8b 100644
92 123
93 static void 124 static void
94 audit_list_init (struct audit_list *list) 125 audit_list_init (struct audit_list *list)
95@@ -1286,13 +1287,13 @@ of this helper program; chances are you did not intend to run this program.\n\
96 --list list all dependencies and how they are resolved\n\
97 --verify verify that given object really is a dynamically linked\n\
98 object we can handle\n\
99- --inhibit-cache Do not use " LD_SO_CACHE "\n\
100+ --inhibit-cache Do not use %s\n\
101 --library-path PATH use given PATH instead of content of the environment\n\
102 variable LD_LIBRARY_PATH\n\
103 --inhibit-rpath LIST ignore RUNPATH and RPATH information in object names\n\
104 in LIST\n\
105 --audit LIST use objects named in LIST as auditors\n\
106- --preload LIST preload objects named in LIST\n");
107+ --preload LIST preload objects named in LIST\n", LD_SO_CACHE);
108
109 ++_dl_skip_args;
110 --_dl_argc;
111diff --git a/iconv/gconv_conf.c b/iconv/gconv_conf.c 126diff --git a/iconv/gconv_conf.c b/iconv/gconv_conf.c
112index 735bd1f2d5..25100ba666 100644 127index 682f949834..7eed87bc9d 100644
113--- a/iconv/gconv_conf.c 128--- a/iconv/gconv_conf.c
114+++ b/iconv/gconv_conf.c 129+++ b/iconv/gconv_conf.c
115@@ -36,7 +36,7 @@ 130@@ -36,7 +36,7 @@
@@ -122,10 +137,10 @@ index 735bd1f2d5..25100ba666 100644
122 /* Type to represent search path. */ 137 /* Type to represent search path. */
123 struct path_elem 138 struct path_elem
124diff --git a/sysdeps/generic/dl-cache.h b/sysdeps/generic/dl-cache.h 139diff --git a/sysdeps/generic/dl-cache.h b/sysdeps/generic/dl-cache.h
125index 6b310e9e15..3877311df4 100644 140index 964d50a486..94bf68ca9d 100644
126--- a/sysdeps/generic/dl-cache.h 141--- a/sysdeps/generic/dl-cache.h
127+++ b/sysdeps/generic/dl-cache.h 142+++ b/sysdeps/generic/dl-cache.h
128@@ -27,10 +27,6 @@ 143@@ -34,10 +34,6 @@
129 ((flags) == 1 || (flags) == _DL_CACHE_DEFAULT_ID) 144 ((flags) == 1 || (flags) == _DL_CACHE_DEFAULT_ID)
130 #endif 145 #endif
131 146
@@ -136,6 +151,3 @@ index 6b310e9e15..3877311df4 100644
136 #ifndef add_system_dir 151 #ifndef add_system_dir
137 # define add_system_dir(dir) add_dir (dir) 152 # define add_system_dir(dir) add_dir (dir)
138 #endif 153 #endif
139--
1402.27.0
141