RFC: getting rid of Xalloc/Xfree/... in server
Adam Jackson
ajax at nwnk.net
Mon May 10 08:23:40 PDT 2010
On Mon, 2010-05-10 at 07:17 -0700, Alan Coopersmith wrote:
> Tiago Vignatti wrote:
> > On 05/08/2010 01:23 PM, Matthieu Herrb wrote:
> >> If someone wants to be able to experiment with different malloc
> >> implementations in X, then we should keep wrappers to make it easier.
> >
> > then ld's our friend and let us do this in a cleaner way:
> >
> > http://people.freedesktop.org/~vignatti/scrutinizing-x-mem/0001-dix-add-memory-allocation-wrapping-functions-for-pro.patch
>
> Note the existing checks for ld wrap support in configure.ac, since it's
> only available on GNU ld and very very recent versions of OpenSolaris ld.
> It should be okay to use if configure finds it, you just can't assume that
> it will be found everywhere.
>
> ELF interposition is more widely available, but still not universal to all
> our platforms.
LD_PRELOAD works on every ELF system we're portable to, though for Xorg
you need to be root to do it.
- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100510/40e2178f/attachment.pgp>
More information about the xorg-devel
mailing list