Shared lib symbol hiding (Was: Re: Lazy mpz allocation)

Torbjörn Granlund tg at
Mon Sep 7 15:34:08 UTC 2015

"Marco Bodrato" <bodrato at> writes:

  You pushed a patch to check if both 'attribute ((visibility ("hidden")))'
  and '__attribute__ ((alias...' are available.
  Maybe in some cases (e.g. the constant limb we are speaking about in this
  thread) we only want to hide, without the need of an alias?
We could separate them.  We need to worry about ELF, Mach-o and the
Windows format(s).  Does any of these support just hiding but not
aliasing?  I don't know.

I intend to soon make some hiding experiements over our great test
environment.  If it doesn't break things, I have a much larger change
which extensively does hiding + aliasing.  The resulting .so file
becomes much smaller, and GMP's performance should benefit too.

Please encrypt, key id 0xC8601622

More information about the gmp-devel mailing list