[cairo] .so PLT entries for local symbols

Behdad Esfahbod behdad at behdad.org
Tue Sep 5 08:40:22 PDT 2006


On Tue, 2006-09-05 at 05:36 -0400, Keith Packard wrote:
> Arjan van de Ven helped me eliminate .so PLT entries for local symbols
> from fontconfig and I wondered if the same should be done for cairo.
> 
> The procedure is hackish, but doesn't modify the public header files or
> the source functions themselves; the basic procedure is to alias every
> public symbol with a magic hidden symbol that is used from within the
> library.

We do this in glib and gtk+ too.  I'm interested in seeing the
implementation.

> What you end up with is significantly smaller code, however you lose the
> ability to replace cairo functions with LD_PRELOAD or other shared
> libraries (which I consider a feature).

-- 
behdad
http://behdad.org/

"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
        -- Dan Bern, "New American Language"



More information about the cairo mailing list