Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/lib/elf.c

    r137691a r439d036  
    4848#include <arch.h>
    4949
    50 static const char *error_codes[] = {
     50static char *error_codes[] = {
    5151        "no error",
    5252        "invalid image",
     
    137137 * @return NULL terminated description of error.
    138138 */
    139 const char *elf_error(unsigned int rc)
     139char *elf_error(unsigned int rc)
    140140{
    141141        ASSERT(rc < sizeof(error_codes) / sizeof(char *));
     
    155155    as_t *as, int flags)
    156156{
     157        char *interp;
     158
    157159        switch (entry->p_type) {
    158160        case PT_NULL:
     
    163165        case PT_DYNAMIC:
    164166        case PT_INTERP:
    165                 // FIXME
    166                 /*
    167                 char *interp = (char *) elf + entry->p_offset;
    168                 if (memcmp((uintptr_t) interp, (uintptr_t) ELF_INTERP_ZSTR,
     167                interp = (char *)elf + entry->p_offset;
     168                /* FIXME */
     169                /*if (memcmp((uintptr_t)interp, (uintptr_t)ELF_INTERP_ZSTR,
    169170                    ELF_INTERP_ZLEN) != 0) {
    170171                        return EE_UNSUPPORTED;
    171                 } */
     172                }*/
    172173                if ((flags & ELD_F_LOADER) == 0) {
    173174                        return EE_LOADER;
Note: See TracChangeset for help on using the changeset viewer.