From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from kirsty.vergenet.net ([202.4.237.240]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yngi7-0004XX-NG for kexec@lists.infradead.org; Thu, 30 Apr 2015 05:08:32 +0000 Date: Thu, 30 Apr 2015 14:08:09 +0900 From: Simon Horman Subject: Re: [PATCH] purgatory: Disabling GCC's stack protection Message-ID: <20150430050809.GI15511@verge.net.au> References: <1430225419-23969-1-git-send-email-kexin.hao@windriver.com> <20150430043950.GD15511@verge.net.au> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20150430043950.GD15511@verge.net.au> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Kevin Hao Cc: kexec@lists.infradead.org On Thu, Apr 30, 2015 at 01:39:50PM +0900, Simon Horman wrote: > Hi Kevin, > > On Tue, Apr 28, 2015 at 08:50:19PM +0800, Kevin Hao wrote: > > If the GCC's stack protection is enabled by default, the purgatory will > > also be built with this option. But it makes no sense to enable this > > for the purgatory code, and would cause error when we are trying to > > relocate the purgatory codes because symbol like __stack_chk_fail is > > unresolved. Instead of disabling this for some archs specifically, > > disable it for all the archs. > > > > Signed-off-by: Kevin Hao > > This seems like a reasonable change to me, however, it does > not apply cleanly to the kexec tree on kernel.org which I maintain. > > https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git > > Could you rebase and repost? I have now realised that Mike Frysinger has posted a similar, slightly more comprehensive, patch which I have now applied. Could you see if it addresses the problem you are seeing? It is the following commit in the above tree: 4a837c9a19f9 purgatory: force PIC/PIE/SSP off _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec