From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0449C7112B for ; Mon, 15 Oct 2018 09:54:17 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 300AB2064E for ; Mon, 15 Oct 2018 09:54:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 300AB2064E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 42YYgW26LNzF3Jm for ; Mon, 15 Oct 2018 20:54:15 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 42YYH51SxJzF3NY for ; Mon, 15 Oct 2018 20:36:33 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Received: by ozlabs.org (Postfix) id 42YYH50VwFz9sBq; Mon, 15 Oct 2018 20:36:33 +1100 (AEDT) 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 42YYH45xVGz9s5c; Mon, 15 Oct 2018 20:36:32 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Segher Boessenkool Subject: Re: [PATCH] powerpc: Fix stackprotector detection for non-glibc toolchains In-Reply-To: <20181013154829.GO29268@gate.crashing.org> References: <20181012225832.13827-1-mpe@ellerman.id.au> <7e1acec1-c840-321b-0a93-99679fce6cb3@c-s.fr> <87k1mm12p6.fsf@concordia.ellerman.id.au> <20181013154829.GO29268@gate.crashing.org> Date: Mon, 15 Oct 2018 20:36:32 +1100 Message-ID: <87woqjzh3z.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Segher Boessenkool writes: > On Sat, Oct 13, 2018 at 10:55:01PM +1100, Michael Ellerman wrote: >> So it's only my cross compilers that don't work. >> >> The kernel.org ones are: >> Configured with: /home/arnd/git/gcc/configure --target=powerpc64-linux >> --enable-targets=all >> --prefix=/home/arnd/cross/x86_64/gcc-8.1.0-nolibc/powerpc64-linux >> --enable-languages=c --without-headers --disable-bootstrap >> --disable-nls --disable-threads --disable-shared --disable-libmudflap >> --disable-libssp --disable-libgomp --disable-decimal-float >> --disable-libquadmath --disable-libatomic --disable-libcc1 >> --disable-libmpx --enable-checking=release >> >> Whereas mine is: >> Configured with: ../../src/gcc/configure >> --prefix=/home/kerkins/workspace/gcc-build/gcc/gcc-8-branch/target/ppc/build/install/powerpc-linux >> --disable-multilib --disable-bootstrap --enable-languages=c >> --with-pkgversion='Custom 2c79ff811dfcee1c' --target=powerpc-linux >> --enable-targets=all >> >> >> So I wonder if something in there is making the difference? > > You have --disable-libssp on the buildall-built compiler, which makes GCC > assume your libc has the SSP support routines, which gives you these default > offsets (which are what they are on glibc). Never mind that you explicitly > do not have a libc ;-) OK thanks, things just get weirder and weirder :) >> I guess I'll just rewrite the change log to say "some toolchains". > > Or "most". As it happens I forgot to update the change log anyway :/ Oh well. cheers