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
signature.asc
Description: This is a digitally signed message part
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
