From: Ulrich Drepper Date: Tue, 15 Feb 2000 01:44:13 +0000 (+0000) Subject: (dl_main): Fix check for references to dynamic linker. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e841d3a106137d3c3b9f928fa8b59cba69dcc26;p=thirdparty%2Fglibc.git (dl_main): Fix check for references to dynamic linker. --- diff --git a/elf/rtld.c b/elf/rtld.c index f3d48f92f10..85a6e752d1c 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -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. */