/branches/dynload/uspace/srv/loader/main.c |
---|
59,6 → 59,8 |
#include <elf.h> |
#include <elf_load.h> |
void program_run(void *entry, pcb_t *pcb); |
/** Pathname of the file that will be loaded */ |
static char *pathname = NULL; |
276,13 → 278,13 |
close_console(); |
ipc_answer_0(rid, EOK); |
elf_run(&interp_info, &pcb); |
program_run(interp_info.entry, &pcb); |
} else { |
/* Statically linked program */ |
close_console(); |
ipc_answer_0(rid, EOK); |
elf_run(&prog_info, &pcb); |
program_run(prog_info.entry, &pcb); |
} |
/* Not reached */ |