[PATCH] cmd: move ELF load and boot to lib/elf.c