diff options
author | Chris Johns <chrisj@rtems.org> | 2019-02-02 15:09:53 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2019-02-05 10:15:09 +1100 |
commit | 849bcc6ddcf5f66bc9909e925ffaef0a0cb8e75b (patch) | |
tree | 3c23d004b9ce8d16e7b23e019f2c20d2806608c3 /testsuites/libtests/dl07/dl-load.c | |
parent | 7a893fc98c0673dbcb28d50989c3b055701603aa (diff) |
libdl: Add powerpc large memory and small data support.libdl-epics-support
- Add support for architecure sections that can be handled by the
architecture back end.
- Add trampoline/fixup support for PowerPC. This means the PowerPC
now supports large memory loading of applications.
- Add a bit allocator to manage small block based regions of memory.
- Add small data (sdata/sbss) support for the PowerPC. The support
makes the linker allocated small data region of memory a global
resource available to libdl loaded object files.
Updates #3687
Updates #3685
Diffstat (limited to 'testsuites/libtests/dl07/dl-load.c')
-rw-r--r-- | testsuites/libtests/dl07/dl-load.c | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/testsuites/libtests/dl07/dl-load.c b/testsuites/libtests/dl07/dl-load.c index b0f8bd9dac..b92a745f42 100644 --- a/testsuites/libtests/dl07/dl-load.c +++ b/testsuites/libtests/dl07/dl-load.c @@ -7,8 +7,25 @@ * http://www.rtems.org/license/LICENSE. */ -#define DL07_DEBUG_TRACE 0 /* RTEMS_RTL_TRACE_ALL */ -#define DL07_RTL_CMDS 0 +#define TEST_TRACE 0 +#if TEST_TRACE + #define DEBUG_TRACE (RTEMS_RTL_TRACE_DETAIL | \ + RTEMS_RTL_TRACE_WARNING | \ + RTEMS_RTL_TRACE_LOAD | \ + RTEMS_RTL_TRACE_UNLOAD | \ + RTEMS_RTL_TRACE_SYMBOL | \ + RTEMS_RTL_TRACE_RELOC | \ + RTEMS_RTL_TRACE_ALLOCATOR | \ + RTEMS_RTL_TRACE_UNRESOLVED | \ + RTEMS_RTL_TRACE_ARCHIVES | \ + RTEMS_RTL_TRACE_GLOBAL_SYM | \ + RTEMS_RTL_TRACE_DEPENDENCY) + #define DL_DEBUG_TRACE DEBUG_TRACE /* RTEMS_RTL_TRACE_ALL */ + #define DL_RTL_CMDS 1 +#else + #define DL_DEBUG_TRACE 0 + #define DL_RTL_CMDS 0 +#endif #include <dlfcn.h> @@ -23,7 +40,7 @@ typedef int (*call_sig)(void); static void dl_load_dump (void) { -#if DL07_RTL_CMDS +#if DL_RTL_CMDS char* list[] = { "rtl", "list", NULL }; char* sym[] = { "rtl", "sym", NULL }; printf ("RTL List:\n"); @@ -107,8 +124,8 @@ int dl_load_test(void) printf ("Test source (link in strstr): %s\n", dl_localise_file (__FILE__)); -#if DL07_DEBUG_TRACE - rtems_rtl_trace_set_mask (DL07_DEBUG_TRACE); +#if DL_DEBUG_TRACE + rtems_rtl_trace_set_mask (DL_DEBUG_TRACE); #endif o1 = dl_load_obj("/dl07-o1.o", false); |