Skip to content

Commit

Permalink
Fix loading first object along a path when tracing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Mar 6, 2011
1 parent 7e4ba49 commit 6a5ee10
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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>

Expand Down
4 changes: 3 additions & 1 deletion elf/dl-load.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a5ee10

Please sign in to comment.