Module: xenomai-3
Branch: stable-3.0.x
Commit: aa008686091484c88cbb809bc190133a98769a30
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=aa008686091484c88cbb809bc190133a98769a30

Author: Henning Schild <henning.sch...@siemens.com>
Date:   Tue Apr 24 14:37:00 2018 +0200

build: link dlopen libs with "nodelete"

This way a dlclose() will not unmap the libs memory anymore. A real
dlclose() will not work anyways because we lack destructors for all the
stuff we initialize in setup_descriptor->init().

Signed-off-by: Henning Schild <henning.sch...@siemens.com>

---

 configure.ac |    1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index 82aea1e..4f9b1f9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -685,6 +685,7 @@ AC_MSG_RESULT(${CONFIG_XENO_LIBS_DLOPEN:-no})
 if test x$CONFIG_XENO_LIBS_DLOPEN = xy; then
        AC_DEFINE(CONFIG_XENO_LIBS_DLOPEN,1,[config])
        AC_DEFINE_UNQUOTED(CONFIG_XENO_TLS_MODEL,"global-dynamic",[TLS model])
+       XENO_LIB_LDFLAGS="-Wl,-z -Wl,nodelete"
 else
        AC_DEFINE_UNQUOTED(CONFIG_XENO_TLS_MODEL,"initial-exec",[TLS model])
        XENO_LIB_LDFLAGS="-Wl,-z -Wl,nodlopen"


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to