load_elf_from_file function