Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp650762imm; Wed, 26 Sep 2018 04:51:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV61KMPhAYMMxg88YOQnhQIL3+AuwI7XUovfvYFvQu0mXIqcpd63fjJMcz2A7MHvAq/62qNee X-Received: by 2002:a62:c008:: with SMTP id x8-v6mr5908417pff.149.1537962685594; Wed, 26 Sep 2018 04:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537962685; cv=none; d=google.com; s=arc-20160816; b=qraAixc45syTm1sZwvGJlz9KdnsRpTNVQTFfoxwOm1BzLa/lN5MEj4bxngfGyezsox BRrXNYBFHBnfxPyRa68Bl+jan0tZJbzrretRU54vRPr2cFw7k6p/c7HD4YVQ1EaudsnY 33q06WzR64D9Hc6zItjdFtZO/u46qoTY3OrDyPwIHbi2PRsvP2RSqJr4+UOSHjhs/yTO nP93zH2+LdIybdllmIsSxryCik1Fq9X6w0XjkM+cO6B/nB2UGzsinuq7gxFte75T3D8k 1hzgq6pFT7oi/Cf0zFHPzoxR9WNdrJAnN1Ga37yh5uM4GYGkvnzrCEYQwj5I4Yrz9I5k LGsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from; bh=JZvEnYPhfYArQY5EIym8lQjKtaMh/a7J/v61CQmL2kI=; b=f/JJ5+Stg0JlEB9wXDupsSrdkSrgFF9FGSXvPT/ju62qzu1tPPV1AS/l+TwrXMcoXz fEXnPPsd5UphVsJj4mF0QqT93cD49r2hAQO/TPJezekdPxuvsbaiZdAzXqBlF3B1iwFT HHepjGGqyTqmgtlNOZ33/8trOD2PbcdeotHsV3ZFRKK5PsmqrzjqqhiLkJ0zPrvZI8Fl Mtv4o4lySp/S//ePfNguJCw6jTO598rfreiqOUsl0rmDfh4bkmaG18280qXy0h0cdnKD uOXa+VzgN6ZehEfN/3SaruEevMn2bPb8dQlAwjBKWLisn7fgsX2r7RZEUva1892oS5LF eqDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6-v6si4965398pgb.333.2018.09.26.04.51.08; Wed, 26 Sep 2018 04:51:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727760AbeIZSDj convert rfc822-to-8bit (ORCPT + 99 others); Wed, 26 Sep 2018 14:03:39 -0400 Received: from ozlabs.org ([203.11.71.1]:51071 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726342AbeIZSDj (ORCPT ); Wed, 26 Sep 2018 14:03:39 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 42Kx90140Dz9s4s; Wed, 26 Sep 2018 21:51:00 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Christophe LEROY , Segher Boessenkool Cc: Russell Currey , Benjamin Herrenschmidt , Paul Mackerras , Andrew Donnellan , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] powerpc/64: add stack protector support In-Reply-To: <284752d1-6c32-bdca-72d3-4d8616b26fbf@c-s.fr> References: <2b934594d21ade67a4092637cf9e6b7d2d131187.1537801613.git.christophe.leroy@c-s.fr> <0797fc91-6400-2508-1cc0-4bba78aafbbb@c-s.fr> <30fb4e6b-0981-c53c-a1db-94138eaad268@c-s.fr> <20180926092806.GM23155@gate.crashing.org> <284752d1-6c32-bdca-72d3-4d8616b26fbf@c-s.fr> Date: Wed, 26 Sep 2018 21:50:59 +1000 Message-ID: <87o9ckfpek.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe LEROY writes: > Le 26/09/2018 à 11:28, Segher Boessenkool a écrit : >> On Wed, Sep 26, 2018 at 09:58:30AM +0200, Christophe LEROY wrote: >>> Segher, any idea about this problem ? >> >>>>> arch/powerpc/platforms/powermac/bootx_init.o: In function `bootx_printf': >>>>> /var/lib/jenkins-slave/workspace/snowpatch/snowpatch-linux- >>>>> sparse/linux/arch/powerpc/platforms/powermac/bootx_init.c:88: >>>>> undefined reference to `__stack_chk_fail_local' >> >> Are you building as PIC? Are you linking libssp_nonshared.a? Why not? > > Spotted, thanks. > > arch/powerpc/platforms/powermac/Makefile contains: > > CFLAGS_bootx_init.o += -fPIC ... > > Or maybe stack protection on bootx_init doesn't make much sense and we > could just do the following ? > > CFLAGS_bootx_init.o += -fPIC $(call cc-option, -fno-stack-protector) That would be fine by me. cheers