Ignore:
Timestamp:
2018-04-10T18:51:14Z (7 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
20287223
Parents:
e3f819f
Message:

Instead of using .interp section, determine loader by name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/lib/elf_load.h

    re3f819f r57d44dd  
    4646#define EE_INCOMPATIBLE   3  /* ELF image is not compatible with current architecture */
    4747#define EE_UNSUPPORTED    4  /* Non-supported ELF (e.g. dynamic ELFs) */
    48 #define EE_LOADER         5  /* The image is actually a program loader. */
    49 #define EE_IRRECOVERABLE  6  /* Irrecoverable error. */
     48#define EE_IRRECOVERABLE  5  /* Irrecoverable error. */
    5049
    51 /**
    52  * This flags is passed when running the loader, otherwise elf_load()
    53  * would return with a EE_LOADER error code.
    54  */
    55 #define ELD_F_NONE    0
    56 #define ELD_F_LOADER  1
    57 
    58 extern unsigned int elf_load(elf_header_t *, as_t *, unsigned int);
     50extern unsigned int elf_load(elf_header_t *, as_t *);
    5951extern const char *elf_error(unsigned int rc);
    6052
Note: See TracChangeset for help on using the changeset viewer.