Fix DEBUG build on 64-bit arch after r303099

Reported by:	Larry Rosenman <ler at lerctr.org>
This commit is contained in:
Conrad Meyer 2016-07-20 18:11:22 +00:00
parent a0a2a8b563
commit 07f825e871

View File

@ -1660,7 +1660,7 @@ __elfN(puthdr)(struct thread *td, void *hdr, size_t hdrsize, int numsegs,
(numsegs + 1) * ehdr->e_phentsize;
KASSERT(ehdr->e_shoff == hdrsize - sizeof(Elf_Shdr),
("e_shoff: %zu, hdrsize - shdr: %zu",
ehdr->e_shoff, hdrsize - sizeof(Elf_Shdr)));
(size_t)ehdr->e_shoff, hdrsize - sizeof(Elf_Shdr)));
shdr = (Elf_Shdr *)((char *)hdr + ehdr->e_shoff);
memset(shdr, 0, sizeof(*shdr));