summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>2005-06-30 11:27:24 +0000
committerJoakim Tjernlund <joakim.tjernlund@transmode.se>2005-06-30 11:27:24 +0000
commit61e5097b07e3b7283c22cf6e425696cb4219940d (patch)
treef9e9140c3a2fd96baae5a7eb1825a6ecdf00544c
parent5602071008f601088679079c677e6f1341d1d98e (diff)
Quick and dirty hack to prevent ld.so from beeing loaded twice.
Bug exposed by the new __libc_stack_end feature in libc.so.
-rw-r--r--ldso/ldso/ldso.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c
index 66d3786ec..9a5e0228e 100644
--- a/ldso/ldso/ldso.c
+++ b/ldso/ldso/ldso.c
@@ -561,6 +561,8 @@ void _dl_get_ready_to_run(struct elf_resolve *tpnt, unsigned long load_addr,
lpntstr = (char*) (tcurr->dynamic_info[DT_STRTAB] + dpnt->d_un.d_val);
name = _dl_get_last_path_component(lpntstr);
+ if (_dl_strcmp(name, "ld-uClibc.so.0") == 0)
+ continue;
#if defined (__SUPPORT_LD_DEBUG__)
if(_dl_debug)