Changeset bb9ec2d in mainline for uspace/lib/c/generic/elf/elf_load.c
- Timestamp:
- 2017-03-07T20:47:35Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a737667e
- Parents:
- e796dc8
- git-author:
- Jiri Zarevucky <zarevucky.jiri@…> (2017-03-07 20:47:35)
- git-committer:
- Jakub Jermar <jakub@…> (2017-03-07 20:47:35)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/elf/elf_load.c
re796dc8 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.