Changeset aa85487 in mainline for kernel/generic/src/lib/elf.c


Ignore:
Timestamp:
2010-03-07T15:11:56Z (14 years ago)
Author:
Lukas Mejdrech <lukasmejdrech@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
aadf01e
Parents:
2e99277 (diff), 137691a (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.
Message:

Merge mainline changes, revision 308

File:
1 edited

Legend:

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

    r2e99277 raa85487  
    4848#include <arch.h>
    4949
    50 static char *error_codes[] = {
     50static const char *error_codes[] = {
    5151        "no error",
    5252        "invalid image",
     
    137137 * @return NULL terminated description of error.
    138138 */
    139 char *elf_error(unsigned int rc)
     139const char *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 
    159157        switch (entry->p_type) {
    160158        case PT_NULL:
     
    165163        case PT_DYNAMIC:
    166164        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,
    170169                    ELF_INTERP_ZLEN) != 0) {
    171170                        return EE_UNSUPPORTED;
    172                 }*/
     171                } */
    173172                if ((flags & ELD_F_LOADER) == 0) {
    174173                        return EE_LOADER;
Note: See TracChangeset for help on using the changeset viewer.