xserver-multidpi/hw
Michal Srb 258abbf823 Look for ModuleData only in appropriate library
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 <modulename>ModuleData symbol, the
module's library gets the flag and is kept in memory even after it is
unloaded.

This patch adds LoaderSymbolFromModule function that looks for symbol only in
library specified by handle. That way the NODELETE flag isn't added.

This glibc behavior doesn't seem to be documented, but even if other
implementations differ, there is no reason to search ModuleData symbol outside
the module's library.

Signed-off-by: Michal Srb <msrb@suse.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>

v2: Switch LoaderSymbolFromModule arguments order.
    Correct description.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-04 21:26:24 +10:00
..
dmx Drop custom sigio block/unblock functions from kdrive, ephyr and dmx 2012-07-03 15:56:35 +10:00
kdrive Merge branch 'sigio-vt-switch-issues' into for-keith 2012-07-04 21:23:48 +10:00
vfb api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
xfree86 Look for ModuleData only in appropriate library 2012-07-04 21:26:24 +10:00
xnest api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
xquartz api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
xwin hw/xwin/glx: Fix glxWinCreateContext() function pointer mismatch 2012-06-21 19:52:44 +01:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00