diff --git a/stand/common/load_elf.c b/stand/common/load_elf.c index 69a5e9ae3dfd..7aee75d64c66 100644 --- a/stand/common/load_elf.c +++ b/stand/common/load_elf.c @@ -716,6 +716,8 @@ __elfN(loadimage)(struct preloaded_file *fp, elf_file_t ef, u_int64_t off) #else scr = htobe32(size); #endif +#else + scr = size; #endif archsw.arch_copyin(&scr, lastaddr, sizeof(scr)); lastaddr += sizeof(scr);