Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

Ticket #4946: 4946-no-move.diff

File 4946-no-move.diff, 2.0 KB (added by Chris Johns, on 08/30/23 at 22:02:47)

On aarch64/xilinx_zynqmp_lp64_zu3eg, arm/xilinx_zynq_a9_qemu and psim the address of the call does not move

  • testsuites/libtests/dl09/dl-load.c

    diff --git a/testsuites/libtests/dl09/dl-load.c b/testsuites/libtests/dl09/dl-load.c
    index 216fb5a201..598f51e5f6 100644
    a b  
    2626 * POSSIBILITY OF SUCH DAMAGE.
    2727 */
    2828
    29 #define TEST_TRACE 0
     29#define TEST_TRACE 1
    3030#if TEST_TRACE
    31  #define DEBUG_TRACE (RTEMS_RTL_TRACE_DETAIL | \
     31 #define xDEBUG_TRACE (RTEMS_RTL_TRACE_DETAIL | \
    3232                      RTEMS_RTL_TRACE_WARNING | \
    3333                      RTEMS_RTL_TRACE_LOAD | \
    3434                      RTEMS_RTL_TRACE_UNLOAD | \
     
    4040                      RTEMS_RTL_TRACE_DEPENDENCY | \
    4141                      RTEMS_RTL_TRACE_LOAD_SECT | \
    4242                      RTEMS_RTL_TRACE_BIT_ALLOC)
     43 #define DEBUG_TRACE (RTEMS_RTL_TRACE_ALLOCATOR | \
     44                      RTEMS_RTL_TRACE_LOAD_SECT)
    4345 #define DL09_DEBUG_TRACE DEBUG_TRACE /* RTEMS_RTL_TRACE_ALL */
    4446 #define DL09_RTL_CMDS    1
    4547#else
    int dl_load_test(void) 
    223225
    224226  printf ("Test source (link in strstr): %s\n", dl_localise_file (__FILE__));
    225227  printf ("Allocation size: %zu\n", dl_alloc_size ());
     228  printf ("=-=-=-=-=-=-\n");
     229  printf ("Status on entry:\n");
     230  dl_load_dump ();
     231  printf ("=-=-=-=-=-=-\n");
    226232
    227233#if DL09_DEBUG_TRACE
    228234  rtems_rtl_trace_set_mask (DL09_DEBUG_TRACE);
    int dl_load_test(void) 
    246252  for (i = 0; i < NUMOF (od); ++i)
    247253    dl_object_close (&o[i]);
    248254
     255  printf ("-.-.-.-.-.-.-.\n");
     256  printf ("Status on entry:\n");
     257  dl_load_dump ();
     258  printf ("-.-.-.-.-.-.-.\n");
     259
    249260  return 0;
    250261}
  • testsuites/libtests/dl09/init.c

    diff --git a/testsuites/libtests/dl09/init.c b/testsuites/libtests/dl09/init.c
    index b375fe3f38..bad174be00 100644
    a b static void Init(rtems_task_argument arg) 
    7575    exit (1);
    7676  }
    7777
    78   for (i = 0; i < 4; ++i)
     78  for (i = 0; i < 20; ++i)
    7979  {
    8080    printf ("--------------------------------------------------\n");
    8181    printf (" Run: %d\n", i);