Changeset 3bacee1 in mainline for uspace/lib/c/generic/elf/elf_mod.c
- Timestamp:
- 2018-04-12T16:27:17Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3cf22f9
- Parents:
- 76d0981d
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/elf/elf_mod.c
r76d0981d r3bacee1 273 273 // FIXME: This actually won't work, because the text segment is 274 274 // not loaded yet. 275 275 #if 0 276 276 if (elf->info->interp[entry->p_filesz - 1] != '\0') { 277 277 DPRINTF("Unterminated ELF interp string.\n"); … … 279 279 } 280 280 DPRINTF("interpreter: \"%s\"\n", elf->info->interp); 281 281 #endif 282 282 break; 283 283 case PT_DYNAMIC: … … 286 286 (void *)((uint8_t *)entry->p_vaddr + elf->bias); 287 287 DPRINTF("dynamic section found at %p\n", 288 288 (void *)elf->info->dynamic); 289 289 break; 290 290 case 0x70000000: … … 334 334 335 335 DPRINTF("Load segment at addr %p, size 0x%zx\n", (void *) seg_addr, 336 336 entry->p_memsz); 337 337 338 338 if (entry->p_align > 1) { … … 394 394 * need to set the right access mode and ensure SMC coherence. 395 395 */ 396 if ((elf->flags & ELDF_RW) != 0) return EE_OK; 396 if ((elf->flags & ELDF_RW) != 0) 397 return EE_OK; 397 398 398 399 // printf("set area flags to %d\n", flags);
Note:
See TracChangeset
for help on using the changeset viewer.