[linux-audio-dev] LADSPA plugins and RTLD_GLOBAL

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-dev] LADSPA plugins and RTLD_GLOBAL
From: Steve Harris (S.W.Harris_AT_ecs.soton.ac.uk)
Date: Thu Apr 04 2002 - 23:12:27 EEST


At least one person is dlopen-ing LADSPA plugins with RTLD_GLOBAL, and this
can potentially cause problems with plugins that have clashing globals.

Given that LADSPA plugins shouldn't be exporting global variables to the
rest of the world anyway it would be better if this didn't cause any
problems. It's possible to link with:

ld -shared -Bsymbolic -lc -lm -o foo.so

Which binds the references to global variables in the object. I'm planning
to use this in future releases. It also makes the binaries slightly
smaller.

The downside is that it only works on ELF systems.

- Steve


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Thu Apr 04 2002 - 22:59:52 EEST