Ticket #3527: rtems-common-global-symbol-test.patch

File rtems-common-global-symbol-test.patch, 560 bytes (added by Joseph Hickey, on 09/25/18 at 13:25:27)

Patch to libtests/dl01 to reproduce the unresolved symbol failure

  • testsuites/libtests/dl01/dl-o1.c

    diff --git a/testsuites/libtests/dl01/dl-o1.c b/testsuites/libtests/dl01/dl-o1.c
    index 6e7bb8a07c..50f45af079 100644
    a b  
    2121 */
    2222int rtems_main (int argc, char* argv[]);
    2323
     24unsigned char global_test;
     25
    2426int rtems_main (int argc, char* argv[])
    2527{
    2628  int arg;
    2729  printf("Loaded module: argc:%d [%s]\n", argc, __FILE__);
    2830  for (arg = 0; arg < argc; ++arg)
    2931    printf("  %d: %s\n", arg, argv[arg]);
     32
     33  printf("global address=%p\n", &global_test);
     34
    3035  return argc;
    3136}