Hacker News new | ask | show | jobs
by unnah 1368 days ago
Does anyone know of a way to load multiple instances of a DLL in the same process on Linux? A few months ago I was googling for a solution and didn't find anything ready-made. I guess the dynamic linker wants to have a unique address for each symbol, but in principle you should be able to load another DLL instance, initialize it and call its functions indirectly by using function pointers.
1 comments

How would you find said function pointers?
dlsym and RTLD_LOCAL ?