On 24/04/2012 03:36, Marvin Humphrey wrote:
So... that means that before dlopen returns, any OFFSET vars in the DSO will have been resolved to local copies (which will always be present under your scheme). These will hold potentially incorrect values until our bootstrap routines run, but I don't see a scenario where a *different* thread starts using the DSO before then -- and of course the thread doing the loading will execute linearly and finish bootstrapping before use.
I did some testing on Linux, and it seems that if two DSOs define the same symbols, the DSO loaded second will always see the symbol of the first DSO and never its own ones. So the whole thing shouldn't be a problem.
Nick
