]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(dl_main): Fix check for references to dynamic linker.
authorUlrich Drepper <drepper@redhat.com>
Tue, 15 Feb 2000 01:44:13 +0000 (01:44 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 15 Feb 2000 01:44:13 +0000 (01:44 +0000)
elf/rtld.c

index f3d48f92f10c68fef96fa1edef54948384d12acb..85a6e752d1cd2b923dc07559b4f298f496870804 100644 (file)
@@ -1,5 +1,5 @@
 /* Run time dynamic linker.
-   Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -1035,7 +1035,7 @@ of this helper program; chances are you did not intend to run this program.\n\
        _dl_relocate_object might need to call `mprotect' for DT_TEXTREL.  */
     _dl_sysdep_start_cleanup ();
 
-    if (_dl_rtld_map.l_opencount > 0)
+    if (_dl_rtld_map.l_opencount > 1)
       {
        /* There was an explicit ref to the dynamic linker as a shared lib.
           Re-relocate ourselves with user-controlled symbol definitions.  */