summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/uclibc/uclibc-git/orign_path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/uclibc/uclibc-git/orign_path.patch')
-rw-r--r--meta/recipes-core/uclibc/uclibc-git/orign_path.patch42
1 files changed, 21 insertions, 21 deletions
diff --git a/meta/recipes-core/uclibc/uclibc-git/orign_path.patch b/meta/recipes-core/uclibc/uclibc-git/orign_path.patch
index 631951e489..b22be8ce63 100644
--- a/meta/recipes-core/uclibc/uclibc-git/orign_path.patch
+++ b/meta/recipes-core/uclibc/uclibc-git/orign_path.patch
@@ -3,11 +3,11 @@ http://lists.busybox.net/pipermail/uclibc/2011-March/045003.html
3 3
4Upstream-Status: Pending 4Upstream-Status: Pending
5 5
6diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c 6Index: git/ldso/ldso/dl-elf.c
7index 505247e..2b2d429 100644 7===================================================================
8--- a/ldso/ldso/dl-elf.c 8--- git.orig/ldso/ldso/dl-elf.c 2011-07-01 15:20:51.000000000 -0700
9+++ b/ldso/ldso/dl-elf.c 9+++ git/ldso/ldso/dl-elf.c 2011-07-01 15:21:47.493578777 -0700
10@@ -133,53 +133,60 @@ _dl_protect_relro (struct elf_resolve *l) 10@@ -133,53 +133,60 @@
11 * in uClibc/ldso/util/ldd.c */ 11 * in uClibc/ldso/util/ldd.c */
12 static struct elf_resolve * 12 static struct elf_resolve *
13 search_for_named_library(const char *name, int secure, const char *path_list, 13 search_for_named_library(const char *name, int secure, const char *path_list,
@@ -99,7 +99,7 @@ index 505247e..2b2d429 100644
99 return NULL; 99 return NULL;
100 } 100 }
101 101
102@@ -231,7 +238,8 @@ struct elf_resolve *_dl_load_shared_library(int secure, struct dyn_elf **rpnt, 102@@ -231,7 +238,8 @@
103 if (pnt) { 103 if (pnt) {
104 pnt += (unsigned long) tpnt->dynamic_info[DT_STRTAB]; 104 pnt += (unsigned long) tpnt->dynamic_info[DT_STRTAB];
105 _dl_if_debug_dprint("\tsearching RPATH='%s'\n", pnt); 105 _dl_if_debug_dprint("\tsearching RPATH='%s'\n", pnt);
@@ -109,7 +109,7 @@ index 505247e..2b2d429 100644
109 return tpnt1; 109 return tpnt1;
110 } 110 }
111 #endif 111 #endif
112@@ -239,7 +247,7 @@ struct elf_resolve *_dl_load_shared_library(int secure, struct dyn_elf **rpnt, 112@@ -239,7 +247,7 @@
113 /* Check in LD_{ELF_}LIBRARY_PATH, if specified and allowed */ 113 /* Check in LD_{ELF_}LIBRARY_PATH, if specified and allowed */
114 if (_dl_library_path) { 114 if (_dl_library_path) {
115 _dl_if_debug_dprint("\tsearching LD_LIBRARY_PATH='%s'\n", _dl_library_path); 115 _dl_if_debug_dprint("\tsearching LD_LIBRARY_PATH='%s'\n", _dl_library_path);
@@ -118,7 +118,7 @@ index 505247e..2b2d429 100644
118 { 118 {
119 return tpnt1; 119 return tpnt1;
120 } 120 }
121@@ -253,7 +261,7 @@ struct elf_resolve *_dl_load_shared_library(int secure, struct dyn_elf **rpnt, 121@@ -253,7 +261,7 @@
122 if (pnt) { 122 if (pnt) {
123 pnt += (unsigned long) tpnt->dynamic_info[DT_STRTAB]; 123 pnt += (unsigned long) tpnt->dynamic_info[DT_STRTAB];
124 _dl_if_debug_dprint("\tsearching RUNPATH='%s'\n", pnt); 124 _dl_if_debug_dprint("\tsearching RUNPATH='%s'\n", pnt);
@@ -127,7 +127,7 @@ index 505247e..2b2d429 100644
127 return tpnt1; 127 return tpnt1;
128 } 128 }
129 #endif 129 #endif
130@@ -287,7 +295,7 @@ struct elf_resolve *_dl_load_shared_library(int secure, struct dyn_elf **rpnt, 130@@ -287,7 +295,7 @@
131 /* Look for libraries wherever the shared library loader 131 /* Look for libraries wherever the shared library loader
132 * was installed */ 132 * was installed */
133 _dl_if_debug_dprint("\tsearching ldso dir='%s'\n", _dl_ldsopath); 133 _dl_if_debug_dprint("\tsearching ldso dir='%s'\n", _dl_ldsopath);
@@ -136,7 +136,7 @@ index 505247e..2b2d429 100644
136 if (tpnt1 != NULL) 136 if (tpnt1 != NULL)
137 return tpnt1; 137 return tpnt1;
138 138
139@@ -300,7 +308,7 @@ struct elf_resolve *_dl_load_shared_library(int secure, struct dyn_elf **rpnt, 139@@ -300,7 +308,7 @@
140 #ifndef __LDSO_CACHE_SUPPORT__ 140 #ifndef __LDSO_CACHE_SUPPORT__
141 ":" UCLIBC_RUNTIME_PREFIX "usr/X11R6/lib" 141 ":" UCLIBC_RUNTIME_PREFIX "usr/X11R6/lib"
142 #endif 142 #endif
@@ -145,12 +145,12 @@ index 505247e..2b2d429 100644
145 if (tpnt1 != NULL) 145 if (tpnt1 != NULL)
146 return tpnt1; 146 return tpnt1;
147 147
148diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c 148Index: git/ldso/ldso/ldso.c
149index 7ee9257..9423670 100644 149===================================================================
150--- a/ldso/ldso/ldso.c 150--- git.orig/ldso/ldso/ldso.c 2011-07-01 15:20:51.000000000 -0700
151+++ b/ldso/ldso/ldso.c 151+++ git/ldso/ldso/ldso.c 2011-07-01 15:24:32.363820591 -0700
152@@ -272,6 +272,20 @@ static void __attribute__ ((destructor)) __attribute_used__ _dl_fini(void) 152@@ -370,6 +370,20 @@
153 } 153 return p - list;
154 } 154 }
155 155
156+static void _dl_setup_progname(const char *argv0) 156+static void _dl_setup_progname(const char *argv0)
@@ -167,10 +167,10 @@ index 7ee9257..9423670 100644
167+ } 167+ }
168+} 168+}
169+ 169+
170 void _dl_get_ready_to_run(struct elf_resolve *tpnt, DL_LOADADDR_TYPE load_addr, 170 void *_dl_get_ready_to_run(struct elf_resolve *tpnt, DL_LOADADDR_TYPE load_addr,
171 ElfW(auxv_t) auxvt[AT_EGID + 1], char **envp, 171 ElfW(auxv_t) auxvt[AT_EGID + 1], char **envp, char **argv
172 char **argv 172 DL_GET_READY_TO_RUN_EXTRA_PARMS)
173@@ -321,9 +335,7 @@ void _dl_get_ready_to_run(struct elf_resolve *tpnt, DL_LOADADDR_TYPE load_addr, 173@@ -421,9 +435,7 @@
174 * been fixed up by now. Still no function calls outside of this 174 * been fixed up by now. Still no function calls outside of this
175 * library, since the dynamic resolver is not yet ready. 175 * library, since the dynamic resolver is not yet ready.
176 */ 176 */
@@ -179,5 +179,5 @@ index 7ee9257..9423670 100644
179- } 179- }
180+ _dl_setup_progname(argv[0]); 180+ _dl_setup_progname(argv[0]);
181 181
182 #ifndef __LDSO_STANDALONE_SUPPORT__
182 if (_start == (void *) auxvt[AT_ENTRY].a_un.a_val) { 183 if (_start == (void *) auxvt[AT_ENTRY].a_un.a_val) {
183 _dl_dprintf(_dl_debug_file, "Standalone execution is not supported yet\n");