cleanup load_elf