Browse Source

___brk_addr and __environ are not functions. Finding the broken
lookup on 'atexit' got me excited and I started fixing the same
problem elsewhere. Except these were correct as-was, and were
not a problem....

Eric Andersen 21 years ago
parent
commit
e14a2d5780
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ldso/ldso/ldso.c

+ 2 - 2
ldso/ldso/ldso.c

@@ -609,12 +609,12 @@ void _dl_get_ready_to_run(struct elf_resolve *tpnt, struct elf_resolve *app_tpnt
 	   up each symbol individually. */
 
 
-	_dl_brkp = (unsigned long *) (intptr_t) _dl_find_hash("___brk_addr", NULL, ELF_RTYPE_CLASS_PLT);
+	_dl_brkp = (unsigned long *) (intptr_t) _dl_find_hash("___brk_addr", NULL, 0);
 
 	if (_dl_brkp) {
 		*_dl_brkp = brk_addr;
 	}
-	_dl_envp = (unsigned long *) (intptr_t) _dl_find_hash("__environ", NULL, ELF_RTYPE_CLASS_PLT);
+	_dl_envp = (unsigned long *) (intptr_t) _dl_find_hash("__environ", NULL, 0);
 
 	if (_dl_envp) {
 		*_dl_envp = (unsigned long) envp;