Changeset 272a293 in mainline for uspace/lib
- Timestamp:
- 2019-01-09T15:11:17Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a91b828
- Parents:
- 60c96cf (diff), 1567471 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/lib/c
- Files:
-
- 2 added
- 2 edited
-
arch/amd64/include/libarch/rtld/module.h (added)
-
arch/ia32/include/libarch/rtld/module.h (added)
-
generic/elf/elf_mod.c (modified) (2 diffs)
-
generic/rtld/module.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/elf/elf_mod.c
r60c96cf r272a293 420 420 seg_ptr = (void *) seg_addr; 421 421 422 DPRINTF("Load segment at addr %p, size 0x%zx\n", (void *) seg_addr, 423 entry->p_memsz); 422 DPRINTF("Load segment at addr %p, size 0x%zx, flags %c%c%c\n", (void *) seg_addr, 423 entry->p_memsz, 424 (entry->p_flags & PF_R) ? 'r' : '-', 425 (entry->p_flags & PF_W) ? 'w' : '-', 426 (entry->p_flags & PF_X) ? 'x' : '-'); 424 427 425 428 if (entry->p_align > 1) { … … 484 487 return EE_OK; 485 488 486 rc = as_area_change_flags(seg_ptr, flags); 489 DPRINTF("as_area_change_flags(%p, %x)\n", 490 (uint8_t *) base + bias, flags); 491 rc = as_area_change_flags((uint8_t *) base + bias, flags); 487 492 if (rc != EOK) { 488 493 DPRINTF("Failed to set memory area flags.\n"); -
uspace/lib/c/generic/rtld/module.c
r60c96cf r272a293 50 50 #include <rtld/rtld_arch.h> 51 51 #include <rtld/module.h> 52 #include <libarch/rtld/module.h> 52 53 53 54 #include "../private/libc.h" … … 206 207 DPRINTF("filename:'%s'\n", name_buf); 207 208 208 rc = elf_load_file_name(name_buf, ELDF_RW, &info);209 rc = elf_load_file_name(name_buf, RTLD_MODULE_LDF, &info); 209 210 if (rc != EE_OK) { 210 211 printf("Failed to load '%s'\n", name_buf);
Note:
See TracChangeset
for help on using the changeset viewer.
