Changeset a000878c in mainline for uspace/srv/loader
- Timestamp:
- 2010-02-25T19:11:25Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 958de16
- Parents:
- a634485
- Location:
- uspace/srv/loader
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/loader/elf_load.c
ra634485 ra000878c 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 *)); -
uspace/srv/loader/include/elf.h
ra634485 ra000878c 337 337 #endif 338 338 339 extern c har *elf_error(unsigned int rc);339 extern const char *elf_error(unsigned int rc); 340 340 341 341 #endif -
uspace/srv/loader/include/elf_load.h
ra634485 ra000878c 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 51 51 52 52 /** ELF interpreter name or NULL if statically-linked */ 53 c har *interp;53 const char *interp; 54 54 55 55 /** Pointer to the dynamic section */ … … 74 74 } elf_ld_t; 75 75 76 int elf_load_file(c har *file_name, size_t so_bias, elf_info_t *info);76 int elf_load_file(const char *file_name, size_t so_bias, elf_info_t *info); 77 77 void elf_run(elf_info_t *info, pcb_t *pcb); 78 78 void elf_create_pcb(elf_info_t *info, pcb_t *pcb);
Note:
See TracChangeset
for help on using the changeset viewer.