From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3vjCc800FGzDqq0 for ; Tue, 14 Mar 2017 22:46:00 +1100 (AEDT) In-Reply-To: <1488930021-20227-1-git-send-email-mpe@ellerman.id.au> To: Michael Ellerman , linuxppc-dev@ozlabs.org From: Michael Ellerman Cc: anton@samba.org, amodra@gmail.com Subject: Re: powerpc/boot: Fix zImage TOC alignment Message-Id: <3vjCc71lkBz9s3w@ozlabs.org> Date: Tue, 14 Mar 2017 22:45:59 +1100 (AEDT) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2017-03-07 at 23:40:21 UTC, Michael Ellerman wrote: > Recent toolchains force the TOC to be 256 byte aligned. We need to > enforce this alignment in the zImage linker script, otherwise pointers > to our TOC variables (__toc_start) could be incorrect. If the actual > start of the TOC and __toc_start don't have the same value we crash > early in the zImage wrapper. > > Cc: stable@vger.kernel.org > Suggested-by: Alan Modra > Signed-off-by: Michael Ellerman Applied to powerpc fixes. https://git.kernel.org/powerpc/c/97ee351b50a49717543533cfb85b4b cheers