[gnutls-devel] GnuTLS | GnuTLS static library wrongly exports private symbols (#1703)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Tue Apr 22 03:00:27 CEST 2025
Daiki Ueno commented: https://gitlab.com/gnutls/gnutls/-/issues/1703#note_2461054654
Thank you for forwarding this. I'm afraid the `lib-symbol-visibility` module wouldn't help, as it only works with shared libraries (as documented), where we already make use of a linker version [script](https://gitlab.com/gnutls/gnutls/-/blob/master/lib/libgnutls.map?ref_type=heads) to selectively export symbols.
Afaik we have little control on what symbols are exposed from a static library, though perhaps we could avoid exposing `hash_*` symbols by switching to the [`linkedhash-list`](https://www.gnu.org/software/gnulib/MODULES.html#module=linkedhash-list), which defines all public symbols with the `gl_` prefix.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1703#note_2461054654
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20250422/64d699f2/attachment.html>
More information about the Gnutls-devel
mailing list