Blame SOURCES/glibc-rh808337.patch

b40826
commit 6a5ee1029b3966c5ae9adaaa881e255b2880f511
b40826
Author: Ulrich Drepper <drepper@gmail.com>
b40826
Date:   Sun Mar 6 00:01:50 2011 -0500
b40826
b40826
    Fix loading first object along a path when tracing.
b40826
b40826
diff --git a/elf/dl-load.c b/elf/dl-load.c
b40826
index 1ad16a0..f866066 100644
b40826
--- a/elf/dl-load.c
b40826
+++ b/elf/dl-load.c
b40826
@@ -2111,7 +2111,9 @@ _dl_map_object (struct link_map *loader, const char *name,
b40826
 	    {
b40826
 #ifdef SHARED
b40826
 	      // XXX Correct to unconditionally default to namespace 0?
b40826
-	      l = loader ?: GL(dl_ns)[LM_ID_BASE]._ns_loaded;
b40826
+	      l = (loader
b40826
+		   ?: GL(dl_ns)[LM_ID_BASE]._ns_loaded
b40826
+		   ?: &GL(dl_rtld_map));
b40826
 #else
b40826
 	      l = loader;
b40826
 #endif