Ignore:
File:
1 edited

Legend:

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

    r153c7a29 r17341d4  
    4141 */
    4242
    43 #include <errno.h>
    4443#include <libc.h>
    4544#include <stdlib.h>
     
    6968        __malloc_init();
    7069       
    71         /* Save the PCB pointer */
    72         __pcb = (pcb_t *) pcb_ptr;
    73        
    74 #ifdef CONFIG_RTLD
    75         if (__pcb != NULL && __pcb->rtld_runtime != NULL) {
    76                 runtime_env = (rtld_t *) __pcb->rtld_runtime;
    77         } else {
    78                 if (rtld_init_static() != EOK)
    79                         abort();
    80         }
    81 #endif
    82        
    8370        fibril_t *fibril = fibril_setup();
    8471        if (fibril == NULL)
     
    8774        __tcb_set(fibril->tcb);
    8875       
     76        /* Save the PCB pointer */
     77        __pcb = (pcb_t *) pcb_ptr;
    8978       
    9079#ifdef FUTEX_UPGRADABLE
     
    10089        char **argv;
    10190       
     91#ifdef CONFIG_RTLD
     92        if (__pcb != NULL && __pcb->rtld_runtime != NULL) {
     93                runtime_env = (rtld_t *) __pcb->rtld_runtime;
     94        }
     95#endif
    10296        /*
    10397         * Get command line arguments and initialize
Note: See TracChangeset for help on using the changeset viewer.