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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 169E1C433F5 for ; Mon, 25 Apr 2022 17:21:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243894AbiDYRYJ (ORCPT ); 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: 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.