Re: [PATCH v2] Look for ModuleData only in appropriate library

2012-07-04 Thread Peter Hutterer
On Thu, Jun 28, 2012 at 05:17:12PM +0200, Michal Srb wrote: > LoaderSymbol calls dlsym with RTLD_DEFAULT pseudo handle making it search in > every loaded library. In addition glibc adds NODELETE flag to the library > containing the symbol. > > It's used in doLoadModule to locate ModuleData symbol,

Re: [PATCH v2] Look for ModuleData only in appropriate library

2012-07-02 Thread Adam Jackson
On 6/28/12 11:17 AM, Michal Srb wrote: LoaderSymbol calls dlsym with RTLD_DEFAULT pseudo handle making it search in every loaded library. In addition glibc adds NODELETE flag to the library containing the symbol. It's used in doLoadModule to locateModuleData symbol, the module's library gets the

[PATCH v2] Look for ModuleData only in appropriate library

2012-06-28 Thread Michal Srb
LoaderSymbol calls dlsym with RTLD_DEFAULT pseudo handle making it search in every loaded library. In addition glibc adds NODELETE flag to the library containing the symbol. It's used in doLoadModule to locate ModuleData symbol, the module's library gets the flag and is kept in memory even after i