- Timestamp:
- 2018-04-10T18:51:14Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 20287223
- Parents:
- e3f819f
- Location:
- uspace
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/elf/elf_mod.c
re3f819f r57d44dd 268 268 break; 269 269 case PT_INTERP: 270 /* Assume silently interp == "/app/dload" */ 271 elf->info->interp = "/app/dload"; 270 elf->info->interp = 271 (void *)((uint8_t *)entry->p_vaddr + elf->bias); 272 273 // FIXME: This actually won't work, because the text segment is 274 // not loaded yet. 275 #if 0 276 if (elf->info->interp[entry->p_filesz - 1] != '\0') { 277 DPRINTF("Unterminated ELF interp string.\n"); 278 return EE_INVALID; 279 } 280 DPRINTF("interpreter: \"%s\"\n", elf->info->interp); 281 #endif 272 282 break; 273 283 case PT_DYNAMIC: -
uspace/lib/c/include/elf/elf_mod.h
re3f819f r57d44dd 51 51 #define EE_INCOMPATIBLE 3 /* ELF image is not compatible with current architecture */ 52 52 #define EE_UNSUPPORTED 4 /* Non-supported ELF (e.g. dynamic ELFs) */ 53 #define EE_LOADER 5 /* The image is actually a program loader. */ 54 #define EE_IRRECOVERABLE 6 55 #define EE_IO 7 /* Could not read file. */ 53 #define EE_IRRECOVERABLE 5 54 #define EE_IO 6 /* Could not read file. */ 56 55 57 56 typedef enum { -
uspace/srv/loader/Makefile
re3f819f r57d44dd 36 36 37 37 GENERIC_SOURCES = \ 38 main.c \ 39 interp.S 38 main.c 40 39 41 40 SOURCES = \
Note:
See TracChangeset
for help on using the changeset viewer.