diff options
author | Ulrich Drepper <drepper@gmail.com> | 2010-10-26 13:01:46 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2010-10-26 13:01:46 -0400 |
commit | fa41c84d73be804639ecb2250f0b793b1a6f765e (patch) | |
tree | 0c0588180ff61e29e2a2168ab9f0191804051cee /elf/rtld.c | |
parent | c54ff5c67ea2b2a1235e066da27ffec48a40c566 (diff) | |
download | glibc-fa41c84d73be804639ecb2250f0b793b1a6f765e.zip glibc-fa41c84d73be804639ecb2250f0b793b1a6f765e.tar.gz glibc-fa41c84d73be804639ecb2250f0b793b1a6f765e.tar.bz2 |
Fix assertion in ld.so, introduced by delayed adding to global list.
Diffstat (limited to 'elf/rtld.c')
-rw-r--r-- | elf/rtld.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1108,7 +1108,6 @@ of this helper program; chances are you did not intend to run this program.\n\ main_map = _dl_new_object ((char *) "", "", lt_executable, NULL, __RTLD_OPENEXEC, LM_ID_BASE); assert (main_map != NULL); - assert (main_map == GL(dl_ns)[LM_ID_BASE]._ns_loaded); main_map->l_phdr = phdr; main_map->l_phnum = phnum; main_map->l_entry = *user_entry; @@ -1116,6 +1115,7 @@ of this helper program; chances are you did not intend to run this program.\n\ /* Even though the link map is not yet fully initialized we can add it to the map list since there are no possible users running yet. */ _dl_add_to_namespace_list (main_map, LM_ID_BASE); + assert (main_map == GL(dl_ns)[LM_ID_BASE]._ns_loaded); /* At this point we are in a bit of trouble. We would have to fill in the values for l_dev and l_ino. But in general we |