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.

-- 
        -Alan Coopersmith-        [email protected]
         Oracle Solaris Platform Engineering: X Window System

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to