mirror of git://sourceware.org/git/glibc.git
Update.
1998-03-08 22:55 Ulrich Drepper <drepper@cygnus.com> * elf/rtld.c (dl_main): Delay initialization of path structure if the dynamically linker is invoked implicitly until we read the dynamic section.
This commit is contained in:
parent
d916515874
commit
97a51d8a0c
|
|
@ -1,3 +1,9 @@
|
||||||
|
1998-03-08 22:55 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* elf/rtld.c (dl_main): Delay initialization of path structure if
|
||||||
|
the dynamically linker is invoked implicitly until we read the
|
||||||
|
dynamic section.
|
||||||
|
|
||||||
1998-03-08 Ulrich Drepper <drepper@cygnus.com>
|
1998-03-08 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/chown.c: Add versioning stuff.
|
* sysdeps/unix/sysv/linux/chown.c: Add versioning stuff.
|
||||||
|
|
|
||||||
10
elf/rtld.c
10
elf/rtld.c
|
|
@ -400,9 +400,8 @@ of this helper program; chances are you did not intend to run this program.\n",
|
||||||
main_map->l_entry = *user_entry;
|
main_map->l_entry = *user_entry;
|
||||||
main_map->l_opencount = 1;
|
main_map->l_opencount = 1;
|
||||||
|
|
||||||
/* Initialize the data structures for the search paths for shared
|
/* We delay initializing the path structure until we got the dynamic
|
||||||
objects. */
|
information for the program. */
|
||||||
_dl_init_paths (NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Scan the program header table for the dynamic section. */
|
/* Scan the program header table for the dynamic section. */
|
||||||
|
|
@ -470,6 +469,11 @@ of this helper program; chances are you did not intend to run this program.\n",
|
||||||
/* Set up our cache of pointers into the hash table. */
|
/* Set up our cache of pointers into the hash table. */
|
||||||
_dl_setup_hash (main_map);
|
_dl_setup_hash (main_map);
|
||||||
|
|
||||||
|
if (*user_entry != (ElfW(Addr)) &ENTRY_POINT)
|
||||||
|
/* Initialize the data structures for the search paths for shared
|
||||||
|
objects. */
|
||||||
|
_dl_init_paths (NULL);
|
||||||
|
|
||||||
/* Put the link_map for ourselves on the chain so it can be found by
|
/* Put the link_map for ourselves on the chain so it can be found by
|
||||||
name. Note that at this point the global chain of link maps contains
|
name. Note that at this point the global chain of link maps contains
|
||||||
exactly one element, which is pointed to by main_map. */
|
exactly one element, which is pointed to by main_map. */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue