Building gmp with -fvisibility=hidden

Yuri Gribov tetra2005 at
Thu Apr 26 21:55:41 UTC 2018

Hi all,

Is there any interest in building GMP with -fvisility=hidden on Linux?
I gave it a try recently but it only removed few symbols:
.text size didn't change which means that hiding those didn't allow
for any new optimizations. Dynamic linker sections (.plt, .got,
.rela.dyn, etc.) decreased so maybe applications startup will be
slightly faster.

I attached draft patch (passes `make check').

Best regards,
Yury Gribov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gmp-visibility-1.patch
Type: application/octet-stream
Size: 3943 bytes
Desc: not available
URL: <>

More information about the gmp-discuss mailing list