summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-02-12 23:17:03 +0000
committerUlrich Drepper <drepper@redhat.com>2005-02-12 23:17:03 +0000
commite38c954b3bebd37f7519202d918cf0f1edbdd182 (patch)
tree10448433c1c86e4af4417a5942eb0cb3a5847f6e /elf
parentf85f3563dbe640fb1cdb2f8a98c1101e424cb5bc (diff)
downloadglibc-e38c954b3bebd37f7519202d918cf0f1edbdd182.tar.gz
glibc-e38c954b3bebd37f7519202d918cf0f1edbdd182.tar.xz
glibc-e38c954b3bebd37f7519202d918cf0f1edbdd182.zip
* debug/chk_fail.c (__chk_fail): Add a while (1) loop around
	__libc_message to kill GCC warning about noreturn function returning.

	* elf/rtld.c (dlmain): If LD_TRACE_PRELINKING, clear l_relocated flag
	before relocating ld.so again.

	* elf/rtld.c (_dl_start): Set bootstrap_map.l_relocated even
	for already prelinked ld.so.
Diffstat (limited to 'elf')
-rw-r--r--elf/rtld.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index 6a1216d12d..fbb4e4c3f2 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -1919,10 +1919,13 @@ ERROR: ld.so: object '%s' from %s cannot be preloaded: ignored.\n",
 
 	      if ((GLRO(dl_debug_mask) & DL_DEBUG_PRELINK)
 		  && GL(dl_rtld_map).l_opencount > 1)
-		_dl_relocate_object (&GL(dl_rtld_map), main_map->l_scope,
-				     0, 0);
-	    }
-
+		{
+		  /* Mark the link map as not yet relocated again.  */
+		  GL(dl_rtld_map).l_relocated = 0;
+		  _dl_relocate_object (&GL(dl_rtld_map), main_map->l_scope,
+				       0, 0);
+		}
+            }
 #define VERNEEDTAG (DT_NUM + DT_THISPROCNUM + DT_VERSIONTAGIDX (DT_VERNEED))
 	  if (version_info)
 	    {