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