ec: Use static linkage on nistp521 felem_{square,mul} wrappers
authorRohan McLure <rohanmclure@linux.ibm.com>
Fri, 23 Jun 2023 06:41:48 +0000 (16:41 +1000)
committerTodd Short <todd.short@me.com>
Fri, 4 Aug 2023 14:20:28 +0000 (10:20 -0400)
commit3e47a286dc3274bda72a196c3a4030a1fc8302f1
tree9980b99db75555241e4bc2cc23e280d26c4b97e4
parent4c50610bdadbcf7aa6bbd968df67b8874234677b
ec: Use static linkage on nistp521 felem_{square,mul} wrappers

Runtime selection of implementations for felem_{square,mul} depends on
felem_{square,mul}_wrapper functions, which overwrite function points in
a similar design to that of .plt.got sections used by program loaders
during dynamic linking.

There's no reason why these functions need to have external linkage.
Mark static.

Signed-off-by: Rohan McLure <rohanmclure@linux.ibm.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/21471)
crypto/ec/ecp_nistp521.c