Comment 36 for bug 1725250

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 1725250] Re: Ubuntu 17.10 - opencryptoki 3.7.0 segmentation fault on pkcsconf -t

On Fri, May 18, 2018 at 09:34:42AM -0000, Dimitri John Ledkov wrote:

> I'm not sure if it is reasonable to force tokens to use unique functions
> names, as most of token code is probably cargo-culted. I thought that it
> should be possible to rename/prefix the symbols at linktime or at dlopen
> time or some such. Cause things like fakeroot/faketime do have access to
> original function names, and new ones, and are able to use both
> simultaneously.

This is generally done by accessing the symbols exclusively via a dlopen
handle, instead of loading two sets of overlapping symbols into the global
namespace.