about summary refs log tree commit diff
path: root/elf/dl-load.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-15 08:43:31 +0000
committerRoland McGrath <roland@gnu.org>2002-08-15 08:43:31 +0000
commit1a6402980810854cae28cce1a348d7e5eecd14e0 (patch)
tree1a5152a1343e4b892e086285939745f730c9570f /elf/dl-load.c
parent750a13ed3c376650947f703e924821c36952d33b (diff)
downloadglibc-1a6402980810854cae28cce1a348d7e5eecd14e0.tar.gz
glibc-1a6402980810854cae28cce1a348d7e5eecd14e0.tar.xz
glibc-1a6402980810854cae28cce1a348d7e5eecd14e0.zip
* elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
	on L->l_prev; it can happen under rtld --verify too.
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r--elf/dl-load.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c
index dac06c0617..89eb6eccc9 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -754,12 +754,11 @@ lose (int code, int fd, const char *name, char *realname, struct link_map *l,
     {
       /* Remove the stillborn object from the list and free it.  */
       assert (l->l_next == NULL);
-#ifndef SHARED
       if (l->l_prev == NULL)
-	/* No other module loaded.  */
+	/* No other module loaded. This happens only in the static library,
+	   or in rtld under --verify.  */
 	GL(dl_loaded) = NULL;
       else
-#endif
 	l->l_prev->l_next = NULL;
       --GL(dl_nloaded);
       free (l);