Module Name: src Committed By: maxv Date: Mon Nov 13 21:33:42 UTC 2017
Modified Files: src/sys/arch/amd64/stand/prekern: elf.c Log Message: One more ASSERT, won't hurt. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sys/arch/amd64/stand/prekern/elf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/amd64/stand/prekern/elf.c diff -u src/sys/arch/amd64/stand/prekern/elf.c:1.11 src/sys/arch/amd64/stand/prekern/elf.c:1.12 --- src/sys/arch/amd64/stand/prekern/elf.c:1.11 Mon Nov 13 21:32:21 2017 +++ src/sys/arch/amd64/stand/prekern/elf.c Mon Nov 13 21:33:42 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: elf.c,v 1.11 2017/11/13 21:32:21 maxv Exp $ */ +/* $NetBSD: elf.c,v 1.12 2017/11/13 21:33:42 maxv Exp $ */ /* * Copyright (c) 2017 The NetBSD Foundation, Inc. All rights reserved. @@ -295,6 +295,7 @@ elf_map_sections() secva = mm_map_segment(segtype, secpa, secsz); /* We want (headva + sh_offset) to be the VA of the section. */ + ASSERT(secva > headva); shdr->sh_offset = secva - headva; } }