1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00
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.
This commit is contained in:
Ulrich Drepper
1998-08-27 20:42:04 +00:00
parent f787edde1d
commit 5f62394167
6 changed files with 20 additions and 14 deletions

View File

@ -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
{