On Wed, 2016-03-16 at 10:46 +0100, Niels Möller wrote:
Nikos Mavrogiannopoulos nmav@redhat.com writes:
One other approach would to be keep a different namespace for private symbols that need to be exported for test applications and so.
That makes sense. But I don't understand what type of "namespaces" you refer to here. Can you explain? How would a test program gain access to functions in the internal namespace?
In gnutls I keep the supported ABI under the GNUTLS_3_4 namespace while functions that need to be exported for testing or other purposes are assigned to GNUTLS_PRIVATE_3_4.
I set that using the version script: https://gitlab.com/gnutls/gnutls/blob/master/lib/libgnutls.map
I don't know if there are any other best practices.
regards, Nikos