Rev 2574 | Rev 3007 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2574 | Rev 2745 | ||
---|---|---|---|
Line 67... | Line 67... | ||
67 | * |
67 | * |
68 | * @param header Pointer to ELF header in memory |
68 | * @param header Pointer to ELF header in memory |
69 | * @param as Created and properly mapped address space |
69 | * @param as Created and properly mapped address space |
70 | * @return EE_OK on success |
70 | * @return EE_OK on success |
71 | */ |
71 | */ |
72 | int elf_load(elf_header_t *header, as_t * as) |
72 | unsigned int elf_load(elf_header_t *header, as_t * as) |
73 | { |
73 | { |
74 | int i, rc; |
74 | int i, rc; |
75 | 75 | ||
76 | /* Identify ELF */ |
76 | /* Identify ELF */ |
77 | if (header->e_ident[EI_MAG0] != ELFMAG0 || |
77 | if (header->e_ident[EI_MAG0] != ELFMAG0 || |
Line 129... | Line 129... | ||
129 | * |
129 | * |
130 | * @param rc Return code returned by elf_load(). |
130 | * @param rc Return code returned by elf_load(). |
131 | * |
131 | * |
132 | * @return NULL terminated description of error. |
132 | * @return NULL terminated description of error. |
133 | */ |
133 | */ |
134 | char *elf_error(int rc) |
134 | char *elf_error(unsigned int rc) |
135 | { |
135 | { |
136 | ASSERT(rc < sizeof(error_codes) / sizeof(char *)); |
136 | ASSERT(rc < sizeof(error_codes) / sizeof(char *)); |
137 | 137 | ||
138 | return error_codes[rc]; |
138 | return error_codes[rc]; |
139 | } |
139 | } |