Changes in kernel/generic/src/lib/elf.c [439d036:137691a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/lib/elf.c
r439d036 r137691a 48 48 #include <arch.h> 49 49 50 static c har *error_codes[] = {50 static const char *error_codes[] = { 51 51 "no error", 52 52 "invalid image", … … 137 137 * @return NULL terminated description of error. 138 138 */ 139 c har *elf_error(unsigned int rc)139 const char *elf_error(unsigned int rc) 140 140 { 141 141 ASSERT(rc < sizeof(error_codes) / sizeof(char *)); … … 155 155 as_t *as, int flags) 156 156 { 157 char *interp;158 159 157 switch (entry->p_type) { 160 158 case PT_NULL: … … 165 163 case PT_DYNAMIC: 166 164 case PT_INTERP: 167 interp = (char *)elf + entry->p_offset; 168 /* FIXME */ 169 /*if (memcmp((uintptr_t)interp, (uintptr_t)ELF_INTERP_ZSTR, 165 // FIXME 166 /* 167 char *interp = (char *) elf + entry->p_offset; 168 if (memcmp((uintptr_t) interp, (uintptr_t) ELF_INTERP_ZSTR, 170 169 ELF_INTERP_ZLEN) != 0) { 171 170 return EE_UNSUPPORTED; 172 } */171 } */ 173 172 if ((flags & ELD_F_LOADER) == 0) { 174 173 return EE_LOADER;
Note:
See TracChangeset
for help on using the changeset viewer.