On 9/9/21 12:45 AM, Paul Wise wrote:
On Thu, 2021-09-09 at 00:39 -0500, Zebediah Figura wrote:Right, but we don't have any guarantee that library A will load library B in its constructor routines. In fact, if it's loading library B dynamically, it's probably not doing that.Can the loader tell which library asked it to load a library? Then the namespace could be inherited from the parent library.
Unfortunately, no. We have no way of knowing the caller.