This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.13-39-g6a5ee10
- From: drepper at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 6 Mar 2011 08:20:16 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.13-39-g6a5ee10
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 6a5ee1029b3966c5ae9adaaa881e255b2880f511 (commit)
from 7e4ba49cd365555ddaff2ae8bba7b912464ad6e5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=6a5ee1029b3966c5ae9adaaa881e255b2880f511
commit 6a5ee1029b3966c5ae9adaaa881e255b2880f511
Author: Ulrich Drepper <drepper@gmail.com>
Date: Sun Mar 6 00:01:50 2011 -0500
Fix loading first object along a path when tracing.
diff --git a/ChangeLog b/ChangeLog
index 821a581..f4750b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-06 Ulrich Drepper <drepper@gmail.com>
+
+ * elf/dl-load.c (_dl_map_object): If we are looking for the first
+ to-be-loaded object along a path to loader is ld.so.
+
2011-03-02 Harsha Jagasia <harsha.jagasia@amd.com>
Ulrich Drepper <drepper@gmail.com>
diff --git a/elf/dl-load.c b/elf/dl-load.c
index 1ad16a0..f866066 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -2111,7 +2111,9 @@ _dl_map_object (struct link_map *loader, const char *name,
{
#ifdef SHARED
// XXX Correct to unconditionally default to namespace 0?
- l = loader ?: GL(dl_ns)[LM_ID_BASE]._ns_loaded;
+ l = (loader
+ ?: GL(dl_ns)[LM_ID_BASE]._ns_loaded
+ ?: &GL(dl_rtld_map));
#else
l = loader;
#endif
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
elf/dl-load.c | 4 +++-
2 files changed, 8 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources