(dl_main): Don't pass USER_ENTRY arg to _dl_map_object.
authorroland <roland>
Sat, 30 Sep 1995 19:48:16 +0000 (19:48 +0000)
committerroland <roland>
Sat, 30 Sep 1995 19:48:16 +0000 (19:48 +0000)
When run as program, set *USER_ENTRY to L->l_entry.

elf/rtld.c

index 79d7ae7..276ff51 100644 (file)
@@ -166,7 +166,7 @@ of this helper program; chances are you did not intend to run this program.\n",
          l->l_phdr = phdr;
          l->l_phnum = phent;
          interpreter_name = 0;
          l->l_phdr = phdr;
          l->l_phnum = phent;
          interpreter_name = 0;
-         assert (*user_entry == l->l_entry);
+         l->l_entry = *user_entry;
        }
 
       if (l != _dl_loaded)
        }
 
       if (l != _dl_loaded)