(dl_main): Fix check for references to dynamic linker.

This commit is contained in:
Ulrich Drepper 2000-02-15 01:44:13 +00:00
parent 59b5910f05
commit 7e841d3a10

View 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. */