diff options
author | Chris Johns <chrisj@rtems.org> | 2019-02-02 15:09:53 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2019-02-09 10:06:34 +1100 |
commit | 6c9f0176a916cdbe88e04417e7aa1405d80c500f (patch) | |
tree | 1846dd800a123e682f15e49a893426a9a6a064c4 /cpukit/libdl/rtl-archive.c | |
parent | libdl: Add support for large memory programs (diff) | |
download | rtems-6c9f0176a916cdbe88e04417e7aa1405d80c500f.tar.bz2 |
libdl: Add powerpc large memory and small data 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 'cpukit/libdl/rtl-archive.c')
-rw-r--r-- | cpukit/libdl/rtl-archive.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/libdl/rtl-archive.c b/cpukit/libdl/rtl-archive.c index be1199f62f..07d40187e1 100644 --- a/cpukit/libdl/rtl-archive.c +++ b/cpukit/libdl/rtl-archive.c @@ -21,6 +21,7 @@ #include <dirent.h> #include <errno.h> #include <fnmatch.h> +#include <inttypes.h> #include <stdio.h> #include <string.h> @@ -572,7 +573,7 @@ rtems_rtl_archives_close (rtems_rtl_archives* archives) { rtems_chain_node* node; if (rtems_rtl_trace (RTEMS_RTL_TRACE_ARCHIVES)) - printf ("rtl: archive: close: count=%ds\n", + printf ("rtl: archive: close: count=%zu\n", rtems_chain_node_count_unprotected (&archives->archives)); node = rtems_chain_first (&archives->archives); while (!rtems_chain_is_tail (&archives->archives, node)) @@ -591,7 +592,7 @@ rtems_rtl_archives_remove (rtems_rtl_archives* archives) { rtems_chain_node* node = rtems_chain_first (&archives->archives); if (rtems_rtl_trace (RTEMS_RTL_TRACE_ARCHIVES)) - printf ("rtl: archive: refresh: remove: checking %d archive(s)\n", + printf ("rtl: archive: refresh: remove: checking %zu archive(s)\n", rtems_chain_node_count_unprotected (&archives->archives)); while (!rtems_chain_is_tail (&archives->archives, node)) { @@ -716,7 +717,7 @@ rtems_rtl_archive_loader (rtems_rtl_archive* archive, void* data) archive->symbols.base, archive->symbols.entries, archive->symbols.names, - (archive->symbols.entries + 1) * 4, + (unsigned int) (archive->symbols.entries + 1) * 4, archive->symbols.symbols); if (rtems_rtl_trace (RTEMS_RTL_TRACE_ARCHIVE_SYMS) && |