Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3399 → Rev 3400

/branches/dynload/uspace/lib/rtld/module.c
39,12 → 39,12
#include <unistd.h>
#include <fcntl.h>
#include <libadt/list.h>
#include <loader/pcb.h>
 
#include <rtld.h>
#include <dynamic.h>
#include <pcb.h>
#include <elf_load.h>
#include <arch.h>
#include <rtld_arch.h>
#include <module.h>
 
/** (Eagerly) process all relocation tables in a module.
126,9 → 126,10
exit(1);
}
 
/* Prepend soname with slash */
/* Prepend soname with '/lib/' */
name_buf[0] = '/';
strcpy(name_buf + 1, name);
strcpy(name_buf, "/lib/");
strcpy(name_buf + 5, name);
 
/* FIXME: need to vary bias / allocate address space */
m->bias = 0x20000;
136,7 → 137,7
 
rc = elf_load_file(name_buf, m->bias, &info);
if (rc < 0) {
printf("Failed to load '%s'\n");
printf("Failed to load '%s'\n", name_buf);
exit(1);
}