summary refs log tree commit diff
path: root/elf/dl-object.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-08-27 20:42:04 +0000
committerUlrich Drepper <drepper@redhat.com>1998-08-27 20:42:04 +0000
commit5f62394167f5df4565e6e07e1e16c56021626e50 (patch)
tree2d21615bf816ac7cc3b9cdf9b90a1e68b43a7680 /elf/dl-object.c
parentf787edde1dcd0f35feff9c8fd6384bd564558180 (diff)
downloadglibc-5f62394167f5df4565e6e07e1e16c56021626e50.tar.gz
glibc-5f62394167f5df4565e6e07e1e16c56021626e50.tar.xz
glibc-5f62394167f5df4565e6e07e1e16c56021626e50.zip
Update.
	Call _dl_new_object with extra argument.
	Call _dl_new_object with extra argument.
	but the main one if new argument is nonzero.
	* elf/ldsodefs.h: Adjust for _dl_new_object change.
	(dl_main): Call _dl_new_object with extra argument.
Diffstat (limited to 'elf/dl-object.c')
-rw-r--r--elf/dl-object.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/elf/dl-object.c b/elf/dl-object.c
index f2ef8163ce..e91beac926 100644
--- a/elf/dl-object.c
+++ b/elf/dl-object.c
@@ -33,7 +33,7 @@ struct link_map *_dl_default_scope[5];
 
 struct link_map *
 internal_function
-_dl_new_object (char *realname, const char *libname, int type)
+_dl_new_object (char *realname, const char *libname, int type, int find_origin)
 {
   struct link_map *new = malloc (sizeof *new);
   struct libname_list *newname = malloc (sizeof *newname);
@@ -62,9 +62,8 @@ _dl_new_object (char *realname, const char *libname, int type)
       l->l_next = new;
     }
 
-  /* The REALNAME is "" for the main link map.  This name must be determined
-     specially.  */
-  if (realname[0] == '\0')
+  /* Don't try to find the origin for the main map.  */
+  if (! find_origin)
     new->l_origin = NULL;
   else
     {