aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/unix/plugin.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-09-15 15:08:28 +0200
committerDamjan Marion <damarion@cisco.com>2021-09-15 15:15:40 +0200
commitef4ddfa482b9d1d07b44b96a57a0a738bd3aca05 (patch)
treeb973ba74d418be258dc54a990fec9f007e030681 /src/vlib/unix/plugin.c
parent764a8780c2ad250b76f289d742d22216d8c0904e (diff)
vlib: add option to plugin registration to prefer deep binding
Type: improvement Change-Id: I9ce7e1ee7e7afe8e9befe36ae8c59291beaaaf36 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/unix/plugin.c')
-rw-r--r--src/vlib/unix/plugin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vlib/unix/plugin.c b/src/vlib/unix/plugin.c
index a714c7c29ce..4a7ff2753f2 100644
--- a/src/vlib/unix/plugin.c
+++ b/src/vlib/unix/plugin.c
@@ -304,7 +304,8 @@ process_reg:
}
vec_free (version_required);
- handle = dlopen ((char *) pi->filename, RTLD_LAZY);
+ handle = dlopen ((char *) pi->filename,
+ RTLD_LAZY | (reg->deep_bind ? RTLD_DEEPBIND : 0));
if (handle == 0)
{