]> git.ipfire.org Git - thirdparty/strongswan.git/commit
plugin-loader: Optionally use RTLD_NOW with dlopen()
authorTobias Brunner <tobias@strongswan.org>
Fri, 25 Sep 2015 09:05:24 +0000 (11:05 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 9 Nov 2015 13:37:08 +0000 (14:37 +0100)
commit305c4aa82cb0a400d771fbb79d475b72f9a99977
tree5e7293bb9ca9c9b62bb8e9da096fbf733400edad
parent7bea8e0f4a87d47267a773f103a251ad7993d2d6
plugin-loader: Optionally use RTLD_NOW with dlopen()

This can be useful when writing custom plugins as typos or missing
linker flags that result in unresolved symbols in the shared object
could otherwise cause late crashes.  In particular, if such a symbol
is used in a code path that is rarely executed.  During development
and testing using RTLD_NOW instead of RTLD_LAZY will prevent the
plugin from getting loaded and makes the error visible immediately.
conf/options/charon.opt
src/libstrongswan/plugins/plugin_loader.c