Changeset 742fc98e in mainline for uspace/lib/c/generic/rtld/module.c
- Timestamp:
- 2018-05-01T19:03:38Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6e33c2f, 924786bf
- Parents:
- 009c485
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-05-01 19:03:38)
- git-committer:
- GitHub <noreply@…> (2018-05-01 19:03:38)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/rtld/module.c
r009c485 r742fc98e 202 202 str_cpy(name_buf + 5, NAME_BUF_SIZE - 5, name); 203 203 204 /* FIXME: need to real allocation of address space */205 m->bias = rtld->next_bias;206 rtld->next_bias += 0x100000;207 204 208 205 DPRINTF("filename:'%s'\n", name_buf); 209 DPRINTF("load '%s' at 0x%zx\n", name_buf, m->bias); 210 211 rc = elf_load_file_name(name_buf, m->bias, ELDF_RW, &info); 206 207 rc = elf_load_file_name(name_buf, ELDF_RW, &info); 212 208 if (rc != EE_OK) { 213 209 printf("Failed to load '%s'\n", name_buf); 214 210 exit(1); 215 211 } 212 213 m->bias = elf_get_bias(info.base); 214 215 DPRINTF("loaded '%s' at 0x%zx\n", name_buf, m->bias); 216 216 217 217 if (info.dynamic == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.