From owner-svn-src-all@freebsd.org Sun Mar 6 16:00:06 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C9DF8A9537B for ; Sun, 6 Mar 2016 16:00:06 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 659F52C1 for ; Sun, 6 Mar 2016 16:00:06 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by mail-wm0-x231.google.com with SMTP id l68so44443969wml.1 for ; Sun, 06 Mar 2016 08:00:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=jR6GAcbcqgcBpTxT2c8AaXCUeVmrw7T6W98nFpOn0q8=; b=WGjU9GMrTQhEllNLck0vXgMysxelvci5qYw8BrYY/UVNNU8mIgMCDJCOwTryazWVVW fp+uEsn1escCiVZEEzowx8Arpuzk3PPzJQpkAbKgceCzuKwMKMr+h3HDw/5pid+IhpwV XWt7fu5xKadvQIFC9v3owO9ksEkkBWJPAaNhyigXmlLQihXpYoQNXGaPYDVAjwil93Dt WylI/TrY3F2ELSje1un0serCRv/+2p3GDYLFPpYR3T2HhE537CEmwoqCNhivwq5F1QLe ln7WJ1a9aNfStT2atlna38sUVpcN6LFQmLDze+ZL7tFUsXljPvGHgQgS/hELgb6LDU6B ZZVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=jR6GAcbcqgcBpTxT2c8AaXCUeVmrw7T6W98nFpOn0q8=; b=cBkm38ZfccCsoRA9zpQDCbnFsGXKSl4zVWAxKHXUkUaYBzMGIJw/qWF1qV8t/dBjLc czOwhAeo6heLMSblqCBEI+phEZ0rm7ZUlM1hRPNhDuVFX2M+y7WSmyLbMbJ6KNb3j5D3 BdwbZXaAOPiAKPR+4pGH81jFJyKMsDTcxNLSozOeFgBHGYlVgk/Cqm9BAQvTmazfqRLi 8y3oMy0TVX7TMSrP+tPkGxuTEdMNGwhsjIbGQHj3BqaOvEYeSv/m/SgkcmGykkSJ0gJ6 u0sz7Df7Pi+iRnXAIeUew4ZT0Lb26LvQl4ukzK8apsPanHzI5bcoa361RRzUVYdGs5JQ CJkQ== X-Gm-Message-State: AD7BkJKB2VaiK32ya//7AHDNmBdVhcmosyBEyXu7yO9L8qJruyC5cZi5tCP/R43dDS0/AOINe/UHVyKwJDlc/l3u MIME-Version: 1.0 X-Received: by 10.194.77.193 with SMTP id u1mr18393225wjw.73.1457280004586; Sun, 06 Mar 2016 08:00:04 -0800 (PST) Received: by 10.194.243.98 with HTTP; Sun, 6 Mar 2016 08:00:04 -0800 (PST) In-Reply-To: <201603061557.u26FvhMi033982@repo.freebsd.org> References: <201603061557.u26FvhMi033982@repo.freebsd.org> Date: Sun, 6 Mar 2016 17:00:04 +0100 Message-ID: Subject: Re: svn commit: r296428 - head/sys/boot/common From: Oliver Pinter To: Dimitry Andric Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Mar 2016 16:00:07 -0000 On 3/6/16, Dimitry Andric wrote: > Author: dim > Date: Sun Mar 6 15:57:43 2016 > New Revision: 296428 > URL: https://svnweb.freebsd.org/changeset/base/296428 > > Log: > Since kernel modules can now contain sections of type SHT_AMD64_UNWIND, > the boot loader should not skip over these anymore while loading images. > Otherwise the kernel can still panic when it doesn't find the .eh_frame > section belonging to the .rela.eh_frame section. > > Unfortunately this will require installing boot loaders from sys/boot > before attempting to boot with a new kernel. Could you please add a note about this to UPDATING file? > > Reviewed by: kib > MFC after: 2 weeks > X-MFC-With: r296419 > > Modified: > head/sys/boot/common/load_elf_obj.c > > Modified: head/sys/boot/common/load_elf_obj.c > ============================================================================== > --- head/sys/boot/common/load_elf_obj.c Sun Mar 6 14:37:49 2016 (r296427) > +++ head/sys/boot/common/load_elf_obj.c Sun Mar 6 15:57:43 2016 (r296428) > @@ -221,6 +221,9 @@ __elfN(obj_loadimage)(struct preloaded_f > switch (shdr[i].sh_type) { > case SHT_PROGBITS: > case SHT_NOBITS: > +#if defined(__i386__) || defined(__amd64__) > + case SHT_AMD64_UNWIND: > +#endif > lastaddr = roundup(lastaddr, shdr[i].sh_addralign); > shdr[i].sh_addr = (Elf_Addr)lastaddr; > lastaddr += shdr[i].sh_size; > _______________________________________________ > svn-src-head@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org" >