From 5f62394167f5df4565e6e07e1e16c56021626e50 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 27 Aug 1998 20:42:04 +0000 Subject: 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. --- elf/dl-object.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'elf/dl-object.c') 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 { -- cgit v1.2.3