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