summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/dl02
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2018-11-20 14:56:11 +1100
committerChris Johns <chrisj@rtems.org>2018-11-22 12:43:31 +1100
commit03139d5b1cf95d5b2f699e8f56e1f0ba2d7f89e4 (patch)
tree33fd489eac7497cdebe61560bc43e613b3eef0a9 /testsuites/libtests/dl02
parentlibdl: Reindex unresolved names after removing used records. (diff)
downloadrtems-03139d5b1cf95d5b2f699e8f56e1f0ba2d7f89e4.tar.bz2
libdl: Add object file dependencies to track references
Tracking references lets us manage when an object file can be unloaded. If an object file has references to it, it cannot be unloaded. Modules that depend on each other cannot be unloaded. Updates #3605
Diffstat (limited to 'testsuites/libtests/dl02')
-rw-r--r--testsuites/libtests/dl02/dl-load.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/testsuites/libtests/dl02/dl-load.c b/testsuites/libtests/dl02/dl-load.c
index 601d62113c..a00581ab42 100644
--- a/testsuites/libtests/dl02/dl-load.c
+++ b/testsuites/libtests/dl02/dl-load.c
@@ -12,6 +12,11 @@
#include "dl-load.h"
+#include <rtems/rtl/rtl-trace.h>
+
+#define DL02_DEBUG_TRACE 0 /* RTEMS_RTL_TRACE_ALL */
+#define DL02_RTL_CMDS 0
+
typedef int (*call_t)(int argc, const char* argv[]);
static const char* call_args[] = { "1", "2", "3", "4" };
@@ -49,6 +54,10 @@ int dl_load_test(void)
int call_ret;
int ret;
+#if DL02_DEBUG_TRACE
+ rtems_rtl_trace_set_mask (DL02_DEBUG_TRACE);
+#endif
+
o1 = dl_load_obj("/dl02-o1.o");
if (!o1)
return 1;
@@ -56,7 +65,7 @@ int dl_load_test(void)
if (!o1)
return 1;
-#if 0
+#if DL02_RTL_CMDS
{
char* list[] = { "rtl", "list", NULL };
rtems_rtl_shell_command (2, list);