Changes in uspace/lib/c/generic/elf/elf_load.c [bb9ec2d:dc0d8b52] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/elf/elf_load.c
rbb9ec2d rdc0d8b52 41 41 #include <stdio.h> 42 42 #include <stdlib.h> 43 #include <vfs/vfs.h>44 43 45 44 #ifdef CONFIG_RTLD … … 51 50 /** Load ELF program. 52 51 * 53 * @param file File handle52 * @param file_name File name 54 53 * @param info Place to store ELF program information 55 54 * @return EOK on success or non-zero error code 56 55 */ 57 int elf_load( int file, elf_info_t *info)56 int elf_load(const char *file_name, elf_info_t *info) 58 57 { 59 58 #ifdef CONFIG_RTLD … … 62 61 int rc; 63 62 64 rc = elf_load_file(file , 0, 0, &info->finfo);63 rc = elf_load_file(file_name, 0, 0, &info->finfo); 65 64 if (rc != EE_OK) { 66 65 DPRINTF("Failed to load executable '%s'.\n", file_name);
Note:
See TracChangeset
for help on using the changeset viewer.