OMNeT++ Community Site
  Welcome to OMNeT++ Community Site Monday, October 13 2008 

Mailing list archive (omnetpp-l at omnetpp.org)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[omnetpp] OMNeT++ 4 Request



Hi,

I have a small request for OMNeT++ 4. A small change to the file loadlib.h:

original:
if (!dlopen(libfname.c_str(),RTLD_NOW))

request:
if (!dlopen(libfname.c_str(),RTLD_NOW | RTLD_GLOBAL))

Why do I need this or think it is useful:
I am using the load-libs command in omnetpp.ini to dynamically load a 
module from a shared library A. This module in A will load dynamically 
futher shared libraries B_1 ... B_n at a later point of time. Using the 
RTLD_GLOBAL flag all symbols from A are inserted into the symbol cache 
of the process, allowing later libraries B_i to use functionality from 
A. This is not possible when only using RTLD_NOW, as this will only 
resolve symbols currently needed. Therefore there is no way to resolve 
symbols needed later.

I would be happy if this makes its way into OMNeT++ 4. I can't imagine a 
use case where this could break existing implementations.

Best regards,
Chris
-- 
Dipl.-Inform. Christoph P. Mayer
Institute of Telematics, University of Karlsruhe (TH)
Zirkel 2, 76128 Karlsruhe, Germany
Phone: +49 721 608 6415, Email: mayer at xxx
Web: http://www.tm.uka.de/~mayer/
_______________________________________________
OMNeT++ Mailing List
options: http://lists.omnetpp.org/mailman/listinfo/omnetpp-l
archive: http://www.omnetpp.org/listarchive/index.php

Home | Main Index | Thread Index


 Copyright © 2008 OMNeT++ Community Site
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By GeekLog v1.3.7sr1 
Page created in 0.04 seconds