From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from trent.utfs.org (trent.utfs.org [94.185.90.103]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3ttzvp4BFkzDqQ9 for ; Thu, 5 Jan 2017 05:33:10 +1100 (AEDT) Date: Wed, 4 Jan 2017 10:33:05 -0800 (PST) From: Christian Kujau To: Christophe LEROY cc: Michael Ellerman , linuxppc-dev@lists.ozlabs.org, Segher Boessenkool , Benjamin Herrenschmidt Subject: Re: bootx_init.c:88: undefined reference to `__stack_chk_fail_local' In-Reply-To: <81ef821b-8af2-0ee5-ab35-58639548dab7@c-s.fr> Message-ID: References: <81ef821b-8af2-0ee5-ab35-58639548dab7@c-s.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 4 Jan 2017, Christophe LEROY wrote: > Using GCC 5.4.0, I don't have that issue. bootx_init.o only contains reference > to __stack_chk_fail FWIW, building with a GCC 5.2 crosscompiler succeeds (with CONFIG_CC_STACKPROTECTOR_STRONG=y), but I don't know if it will boot though, see my other mail in this thread: https://lists.ozlabs.org/pipermail/linuxppc-dev/2017-January/152623.html So, would the following be sufficient? It compiles, but I haven't had a chance to boot yet. diff --git a/arch/powerpc/platforms/powermac/Makefile b/arch/powerpc/platforms/powermac/Makefile index 1eb7b45..c7dcab9 100644 --- a/arch/powerpc/platforms/powermac/Makefile +++ b/arch/powerpc/platforms/powermac/Makefile @@ -1,4 +1,4 @@ -CFLAGS_bootx_init.o += -fPIC +CFLAGS_bootx_init.o += -fPIC -fno-stack-protector ifdef CONFIG_FUNCTION_TRACER # Do not trace early boot code Thanks, Christian. -- BOFH excuse #156: Zombie processes haunting the computer