| 185 | } |
| 186 | |
| 187 | static int elf_file_open(const char *filename) |
| 188 | { |
| 189 | int fd = -1; |
| 190 | |
| 191 | fd = open(filename, O_BINARY | O_RDONLY, 0); |
| 192 | if (fd < 0) |
| 193 | { |
| 194 | LOG_E("%s : elf file [%s] open failed!", __func__, filename); |
| 195 | } |
| 196 | |
| 197 | return fd; |
| 198 | } |
| 199 | |
| 200 | static int elf_file_close(int fd) |
| 201 | { |