Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Feb 2002 22:20:28 +0100
From:      Bjoern Fischer <bfischer@Techfak.Uni-Bielefeld.DE>
To:        freebsd-hackers@FreeBSD.ORG
Cc:        John Polstra <jdp@FreeBSD.ORG>
Subject:   Re: problem w/ dlopen(); bug or feature?
Message-ID:  <20020201212028.GC2992@frolic.no-support.loc>
In-Reply-To: <20020201201018.GB2992@frolic.no-support.loc>
References:  <20020201201018.GB2992@frolic.no-support.loc>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 01, 2002 at 09:10:18PM +0100, Bjoern Fischer wrote:
> I have a problem with dlopen() on FreeBSD: When dlopen()ed
> shared objects dlopen() a shared object themselves, the DT_RPATH,
> that is hardcoded into the first dlopen()ed object is *not*
> searched.

Ok, I've looked into /usr/src/libexec/rtld-elf/rtld.c:dlopen(). It
is obvious why dlopen-test does not work: The runtime linker only
searches in DT_RPATH of the main object obj_main.

John, is it possible to find out in dlopen() which object in the
linked list has issued the dlopen() call? Then a fix would be easy.
BTW, isn't the method of using a linked list for the objects a
bit limiting? Wouldn't be a tree structure better?

-Bj=F6rn


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020201212028.GC2992>