[PATCH 10/58] Mark internal gmp functions with attribute_hidden [BZ #18822]
H.J. Lu
hjl.tools@gmail.com
Sun Oct 1 21:46:00 GMT 2017
On 9/1/17, H.J. Lu <hjl.tools@gmail.com> wrote:
> Mark internal gmp functions with attribute_hidden to allow direct
> access within libc.so and libc.a without using GOT nor PLT.
>
> [BZ #18822]
> * include/gmp.h: Declare internal functions only if _ISOMAC is
> undefined.
> (__mpn_extract_double): Add attribute_hidden.
> (__mpn_extract_long_double): Likewise.
> (__mpn_extract_float128): Likewise.
> (__mpn_construct_float): Likewise.
> (__mpn_construct_double): Likewise.
> (__mpn_construct_long_double): Likewise.
> (__mpn_construct_float128): Likewise.
> (mpn_add_1): Likewise.
> (mpn_addmul_1): Likewise.
> (mpn_add_n): Likewise.
> (mpn_cmp): Likewise.
> (mpn_divrem): Likewise.
> (mpn_lshift): Likewise.
> (mpn_mul): Likewise.
> (mpn_mul_1): Likewise.
> (mpn_rshift): Likewise.
> (mpn_sub_1): Likewise.
> (mpn_submul_1): Likewise.
> (mpn_sub_n): Likewise.
Tested with build-many-glibcs.py. I am checking it in.
--
H.J.
More information about the Libc-alpha
mailing list