insert function to elf file