diff options
author | Chris Johns <chrisj@rtems.org> | 2018-12-17 16:36:48 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2019-02-09 10:06:34 +1100 |
commit | 89c59be38d9c83437abb9002e8fea5012652e5ff (patch) | |
tree | 954df408c26a58ae41851502f427f30771952bdf /cpukit/libdl/dlfcn.c | |
parent | powerpc/psim: Increase the psim memory to 256M (diff) | |
download | rtems-89c59be38d9c83437abb9002e8fea5012652e5ff.tar.bz2 |
libdl: Add symbol searching and loading from archives.
- Load archive symbol tables to support searching of archives
for symbols.
- Search archive symbols and load the object file that contains
the symbol.
- Search the global and archives until all remaining unresolved symbols
are not found. Group the loaded object files in the pending queue.
- Run the object file and loaded dependents as a group before adding to the
main object list.
- Remove orphaned object files after references are removed.
Updates #3686
Diffstat (limited to 'cpukit/libdl/dlfcn.c')
-rw-r--r-- | cpukit/libdl/dlfcn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libdl/dlfcn.c b/cpukit/libdl/dlfcn.c index b97078cbaa..e90ed43668 100644 --- a/cpukit/libdl/dlfcn.c +++ b/cpukit/libdl/dlfcn.c @@ -52,7 +52,7 @@ dlopen (const char* name, int mode) _rtld_debug_state (); if (name) - obj = rtems_rtl_load_object (name, mode); + obj = rtems_rtl_load (name, mode); else obj = rtems_rtl_baseimage (); @@ -83,7 +83,7 @@ dlclose (void* handle) _rtld_debug.r_state = RT_DELETE; _rtld_debug_state (); - r = rtems_rtl_unload_object (obj) ? 0 : -1; + r = rtems_rtl_unload (obj) ? 0 : -1; _rtld_debug.r_state = RT_CONSISTENT; _rtld_debug_state (); |