From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from trent.utfs.org (trent.utfs.org [IPv6:2a03:3680:0:3::67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3tygwS1H4RzDqKM for ; Wed, 11 Jan 2017 05:46:29 +1100 (AEDT) Date: Tue, 10 Jan 2017 10:46:23 -0800 (PST) From: Christian Kujau To: Benjamin Herrenschmidt cc: Christophe LEROY , linuxppc-dev@lists.ozlabs.org Subject: Re: bootx_init.c:88: undefined reference to `__stack_chk_fail_local' In-Reply-To: <1484022722.21117.8.camel@au1.ibm.com> Message-ID: References: <81ef821b-8af2-0ee5-ab35-58639548dab7@c-s.fr> <1484022722.21117.8.camel@au1.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 9 Jan 2017, Benjamin Herrenschmidt wrote: > On Mon, 2017-01-09 at 18:11 -0800, Christian Kujau wrote: > > So, with -fno-stack-protector my GCC 4.9.2 compiles with  > > CC_STACKPROTECTOR_STRONG=y but panics during boot: > > How can it make any sense to have -fno-stack-protector and > CC_STACKPROTECTOR_STRONG=y at the same time ? I've set -fno-stack-protector only for bootx_init.c, as laid out in the diff I posted. This way the kernel at least compiled. Thanks, Christian. -- BOFH excuse #423: It's not RFC-822 compliant.