Adapted unpack_kernel.elf for unpackelf.c