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

Mark Kettenis mark.kettenis at xs4all.nl
Wed Aug 14 07:08:06 PDT 2013


> Date: Wed, 14 Aug 2013 12:11:49 +0200
> From: Egbert Eich <eich at freedesktop.org>
> 
> 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.

That's indeed a concern I have.  I think RTLD_DEEPBIND is only
available with glibc.  So basically, this would sweep some fundamental
design problems in Mesa under the carpet on the dominant platform,
leaving everybody else out in the cold.

The person who added the feature thinks highly of the people who think
they need this: it:

  <http://sourceware.org/ml/libc-hacker/2004-09/msg00083.html>


More information about the xorg-devel mailing list