[PATCH] loader: Use RTLD_DEEPBIND if available to prefer local symbols

Egbert Eich eich at freedesktop.org
Wed Aug 14 03:11:49 PDT 2013


On Wed, Aug 14, 2013 at 10:51:27AM +0200, Michel Dänzer wrote:
> On Mon, 2013-08-12 at 18:25 +0200, Egbert Eich wrote:
> > If there are namespace clashes among different drivers it would be
> > preferrable if each driver used its local symbols. Use the
> > RTLD_DEEPBIND if available to achive this.
> 
> Makes sense to me, FWIW.
> 
> Should this be extended to the other dlopen() calls as well, in
> particular in glx/glxdricommon.c? I wonder if that might help for
> https://bugs.freedesktop.org/show_bug.cgi?id=68085 e.g.

With the autoconf infrastructure in place now we might just as well 
- unless it is possible to enfore a strict namespace regime.
On the downside of course we will push the problem to platforms
that don't support RTLD_DEEPBIND.

Cheers,
	Egbert.


More information about the xorg-devel mailing list