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/dl09/dl-o2.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/dl09/dl-o2.c')
-rw-r--r-- | testsuites/libtests/dl09/dl-o2.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/testsuites/libtests/dl09/dl-o2.c b/testsuites/libtests/dl09/dl-o2.c index 907fe9a268..4b9f15cd28 100644 --- a/testsuites/libtests/dl09/dl-o2.c +++ b/testsuites/libtests/dl09/dl-o2.c @@ -17,7 +17,7 @@ int dl02_bss1; float dl02_bss2[7]; char dl02_bss3[21]; -int dl02_data1; +int dl02_data1 = 0x12345678; float dl02_data2; #define DL_NAME "dlo2" @@ -25,13 +25,14 @@ float dl02_data2; int rtems_main_o2 (void) { - printf (DL_NAME ": module: %s\n", dl_localise_file (__FILE__)); - printf (DL_NAME ": dl02_bss1: %4u: %p: %d\n", PAINT_VAR (dl02_bss1)); - printf (DL_NAME ": dl02_bss2: %4u: %p: %f\n", PAINT_VAR (dl02_bss2[0])); - printf (DL_NAME ": dl02_bss3: %4u: %p: %02x\n", PAINT_VAR (dl02_bss3[0])); - printf (DL_NAME ": dl02_data1: %4u: %p: %d\n", PAINT_VAR (dl02_data1)); + printf (DL_NAME ": module: %s @ %p\n", + dl_localise_file (__FILE__), rtems_main_o2); + printf (DL_NAME ": dl02_bss1: %4zu: %p: %d\n", PAINT_VAR (dl02_bss1)); + printf (DL_NAME ": dl02_bss2: %4zu: %p: %f\n", PAINT_VAR (dl02_bss2[0])); + printf (DL_NAME ": dl02_bss3: %4zu: %p: %02x\n", PAINT_VAR (dl02_bss3[0])); + printf (DL_NAME ": dl02_data1: %4zu: %p: %08x\n", PAINT_VAR (dl02_data1)); /* no %f in the rtems test printer */ - printf (DL_NAME ": dl02_data2: %4u: %p: %f\n", PAINT_VAR (dl02_data2)); + printf (DL_NAME ": dl02_data2: %4zu: %p: %f\n", PAINT_VAR (dl02_data2)); rtems_main_o3 (); |