1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00
* elf/dl-load.c (_dl_map_object): Don't ignore RPATHs of loader ==
	NULL.
This commit is contained in:
Ulrich Drepper
2000-05-27 05:32:14 +00:00
parent 0a5503211c
commit 4c540916ea
2 changed files with 4 additions and 1 deletions

View File

@ -1346,7 +1346,7 @@ _dl_map_object (struct link_map *loader, const char *name, int preloaded,
/* When the object has the RUNPATH information we don't use any
RPATHs. */
if (loader != NULL && loader->l_info[DT_RUNPATH] == NULL)
if (loader == NULL || loader->l_info[DT_RUNPATH] == NULL)
{
/* First try the DT_RPATH of the dependent object that caused NAME
to be loaded. Then that object's dependent, and on up. */