Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp518144pxb; Mon, 25 Apr 2022 15:23:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8ZvL+uf+fkwG5gnbTuObaSbBBSDZTbiE6Qv2i4NXpFZDKTu7nKwDx/HMlKKu+/ivF23hb X-Received: by 2002:a65:6e88:0:b0:39d:2647:f75d with SMTP id bm8-20020a656e88000000b0039d2647f75dmr17055139pgb.523.1650925435557; Mon, 25 Apr 2022 15:23:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650925435; cv=none; d=google.com; s=arc-20160816; b=0+37NzS5mxLDxAqWPzdQj0xihudAguEp81qi7Gcu3y7nGsUAYs4jcuYlvZ/NJZ8cjh TkWIgwel2KRk0aRjsHDNLPxuwwM3ifX55C4+ctDgtCAYfFZszIN5u3yz/yxmIY4n7TND FCPhm8+0NzA4XiVBIkkiisvnfdMWRAcwdbFQ8x31a1mGaTsRhObvmMWkcEJIKmwgaEF6 8oFhnLqOWm/n3NxmMcckvVzRwYyhOuPwURv0B1qNVaLbD1GCX80Yx6++6+AgdV1UbeY6 HiBzbHGFxKAzTIJRFC/i+bcFf1s+LNzZJkNfeNT6zHWtAYYj5oT50cu3O0i0Jzqd9PsJ Kq7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8Cx+hKbjQFfcHaK5OkCn1IuELchtvHh3g00q+xDhsug=; b=xrYc5HodErQIpAOeXXqKyIA/dWiYTywEcEjCZSFkMhCwHlbVZO4ieEjrXJUPg0sz5h kHtMMnyTn1i0OsHARiRQWZoNp/gzl4dwN8QitfWXmBtJqgdN0ucjg/jgv+3H94OMTzzw Llj7Xn4CBt9Gzi5u4Np35ycQq13S4EHEPIDuuObHiSU8RHlBq6owtzIwLGCrDTaphIde 18hG+6s3QiJQchukd5heNAFeq7vcoRMbb/zrbCwfpGNpHZRdAebmMrZeQjP8aVrz16/Q XHwEBedikHEJZ+i6eXz81F2ID2Y1G1TQZLBX4B7kSzEVrDqFaycTDMDc39STIjItONey 8UMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=KhZURnrc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020a170902e54800b0015d22c34b58si2763510plf.251.2022.04.25.15.23.37; Mon, 25 Apr 2022 15:23:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=KhZURnrc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243885AbiDYRYJ (ORCPT + 99 others); Mon, 25 Apr 2022 13:24:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243865AbiDYRYH (ORCPT ); Mon, 25 Apr 2022 13:24:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04AA53F327 for ; Mon, 25 Apr 2022 10:21:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 949E26156E for ; Mon, 25 Apr 2022 17:21:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F465C385A7; Mon, 25 Apr 2022 17:21:01 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="KhZURnrc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1650907260; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8Cx+hKbjQFfcHaK5OkCn1IuELchtvHh3g00q+xDhsug=; b=KhZURnrcGJa84uuSxnudndjbj/hIyFfs4rofeS0jOzostAaZ+slikiAOTdVfXQy7SpSl9E ZNOXEjErYqCpL19j1AjiTlDaLLJZR52vntcYY3Vfm+exLgCBcmHcOIzdsBREbldYjwjEDA B6c1gSyEhN5GU6AcL65NaSL8TLkwDB4= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 77ebcac1 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Mon, 25 Apr 2022 17:20:59 +0000 (UTC) Date: Mon, 25 Apr 2022 19:20:56 +0200 From: "Jason A. Donenfeld" To: Arnd Bergmann Cc: Linux Kernel Mailing List , Nick Desaulniers Subject: Re: odd endianness toolchains for crosstool Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 25, 2022 at 07:01:57PM +0200, Jason A. Donenfeld wrote: > For ppc32? I'm unable to produce working executables with the toolchain. > And looking at the target info, -msecure-plt is missing, while > -mlong-double-64 is there: > > $ ./powerpc-linux-gcc -Q --help=target | grep long-double > -mlong-double- 64 > $ ./powerpc-linux-gcc -Q --help=target | grep msecure-plt > -msecure-plt [disabled] And looking at the actual sections of the binary, indeed the .plt section is RWX, which means it's not getting -msecure-plt as it should.