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?
Would it work to instead exclude _nettle_mp?_* or so?
That could be an option if it would work with the version script. However, that would make the version script a place to list the functions not to be exported, rather than vice-versa, and thus would be hard to manage.
Hmm. And yet another option might be to use visibility attributes (an ELF feature, I understand roughly how they work, but I don't have any real experience).
Regards, /Niels