Changeset aa85487 in mainline for uspace/srv/loader/elf_load.c
- Timestamp:
- 2010-03-07T15:11:56Z (15 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/loader/elf_load.c
r2e99277 raa85487 60 60 #define DPRINTF(...) 61 61 62 static c har *error_codes[] = {62 static const char *error_codes[] = { 63 63 "no error", 64 64 "invalid image", … … 95 95 * pointed to by @a info. 96 96 * 97 * @param file_name 98 * @param so_bias 99 * @param info 100 * 97 * @param file_name Path to the ELF file. 98 * @param so_bias Bias to use if the file is a shared object. 99 * @param info Pointer to a structure for storing information 100 * extracted from the binary. 101 101 * 102 102 * @return EOK on success or negative error code. 103 */ 104 int elf_load_file(char *file_name, size_t so_bias, elf_info_t *info) 103 * 104 */ 105 int elf_load_file(const char *file_name, size_t so_bias, elf_info_t *info) 105 106 { 106 107 elf_ld_t elf; … … 130 131 * earlier with elf_load_file(). This function does not return. 131 132 * 132 * @param info Info structure filled earlier by elf_load_file() 133 * @param info Info structure filled earlier by elf_load_file() 134 * 133 135 */ 134 136 void elf_run(elf_info_t *info, pcb_t *pcb) … … 280 282 * @return NULL terminated description of error. 281 283 */ 282 c har *elf_error(unsigned int rc)284 const char *elf_error(unsigned int rc) 283 285 { 284 286 assert(rc < sizeof(error_codes) / sizeof(char *));
Note:
See TracChangeset
for help on using the changeset viewer.