Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/libc.c

    rbdcf71e r25f6bddb  
    9696
    9797#ifdef CONFIG_RTLD
    98         if (__pcb == NULL) {
    99                 /*
    100                  * A binary loaded by kernel, not the loader.
    101                  * Noop - code loaded by kernel doesn't need RTLD.
    102                  */
     98        if (__pcb != NULL && __pcb->rtld_runtime != NULL) {
     99                runtime_env = (rtld_t *) __pcb->rtld_runtime;
    103100        } else {
    104                 assert(__pcb->rtld_runtime != NULL);
    105                 runtime_env = (rtld_t *) __pcb->rtld_runtime;
     101                if (rtld_init_static() != EOK)
     102                        abort();
    106103        }
    107104#endif
Note: See TracChangeset for help on using the changeset viewer.