Explorar o código

Quick and dirty hack to prevent ld.so from beeing loaded twice.
Bug exposed by the new __libc_stack_end feature in libc.so.

Joakim Tjernlund %!s(int64=20) %!d(string=hai) anos
pai
achega
61e5097b07
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      ldso/ldso/ldso.c

+ 2 - 0
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)