Message ID | 20210821231513.90996-3-stijn@linux-ipv6.be |
---|---|
State | Changes Requested |
Delegated to: | Stijn Tintel |
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=E9PelI2B; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linux-ipv6.be header.i=@linux-ipv6.be header.a=rsa-sha256 header.s=502B7754-045F-11E5-BBC5-64595FD46BE8 header.b=DJxOLgBi; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GsZJl2GMGz9sWd for <incoming@patchwork.ozlabs.org>; Sun, 22 Aug 2021 09:21:43 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Cy1FkRywvmadrDvUCVVcAH0IV3PxTkvoXDv0aS77E+E=; b=E9PelI2BnsJSaX 1iQKtyjArS3HwXJ7c4Zgp4ShUqP5F+1N1mbRIMViUIF+wc+7tJ/PJLKRgydvMRwbBVt8lkhjGjDlj 8SRN2QZKpns/v4vf4JyWXPKJHf6qp6CK7N6GSb7TGRWElvMHzincEqEDn1xHSJSWfsjC5sirKClOI OWB+TLcRDImf3C13cLWOpyN2UyQZrUzsgHhIi0/aJzDrEPnCUU8oyZ+JNsJrCzPYJyteiVLzOtvaH uJoBxCbeAFZJTLdbiZD4d/OD7aa+Eu3FotEn7+NvtxhXmsTZox8H5MAgFl4iBC61fyzH+2uCUzZr0 ij24Afxfa2zAR12AVPcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mHaE6-00DGr3-MA; Sat, 21 Aug 2021 23:16:34 +0000 Received: from mail.tintel.eu ([51.83.127.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mHaDo-00DGnm-17 for openwrt-devel@lists.openwrt.org; Sat, 21 Aug 2021 23:16:20 +0000 Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 6B2F54486AC4 for <openwrt-devel@lists.openwrt.org>; Sun, 22 Aug 2021 01:16:09 +0200 (CEST) Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id 4ogPUiUIh8WT for <openwrt-devel@lists.openwrt.org>; Sun, 22 Aug 2021 01:16:09 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 08C9A4C1B639 for <openwrt-devel@lists.openwrt.org>; Sun, 22 Aug 2021 01:16:09 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.tintel.eu 08C9A4C1B639 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-ipv6.be; s=502B7754-045F-11E5-BBC5-64595FD46BE8; t=1629587769; bh=ATPFLcJhVZVOtFhADsa7wSxhC40MGBmSd+wamBUpHXs=; h=From:To:Date:Message-Id:MIME-Version; b=DJxOLgBicKe5JS99p88o/tsXARVFtvlEaq02bnUbbbKhYCGqDLM1iMglhBFV/wAFB vTgRY+YBkiGmqR328nQEvRIHV7ESbjPwLuAwiU8FXWhFpcOUrvSS4cma4r+fZ5Ekkg 9oFCbHDQgR2XFQpxMPKqrfwUeDGC00HShhmNyD4Q= X-Virus-Scanned: amavisd-new at mail.tintel.eu Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id GuZnJAY5Eb5y for <openwrt-devel@lists.openwrt.org>; Sun, 22 Aug 2021 01:16:08 +0200 (CEST) Received: from taz.sof.bg.adlevio.net (unknown [IPv6:2001:67c:21bc:20::10]) by mail.tintel.eu (Postfix) with SMTP id D59CD4486AC4 for <openwrt-devel@lists.openwrt.org>; Sun, 22 Aug 2021 01:16:08 +0200 (CEST) Received: (nullmailer pid 91049 invoked by uid 1000); Sat, 21 Aug 2021 23:15:13 -0000 From: Stijn Tintel <stijn@linux-ipv6.be> To: openwrt-devel@lists.openwrt.org Subject: [PATCH 2/6] toolchain/gcc: use ELFv2 ABI on ppc64 with musl Date: Sun, 22 Aug 2021 02:15:09 +0300 Message-Id: <20210821231513.90996-3-stijn@linux-ipv6.be> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210821231513.90996-1-stijn@linux-ipv6.be> References: <20210821231513.90996-1-stijn@linux-ipv6.be> MIME-Version: 1.0 X-Rspamd-Queue-Id: D59CD4486AC4 X-Spamd-Result: default: False [0.00 / 15.00]; ASN(0.00)[asn:200533, ipnet:2001:67c:21bc::/48, country:BG]; IP_WHITELIST(0.00)[2001:67c:21bc:20::10] X-Rspamd-Server: skulls X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210821_161616_248924_778EB4EA X-CRM114-Status: UNSURE ( 6.99 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: At configuration time, gcc assumes that ppc64be targets use the ELFv1 ABI, and ppc64le targets use the ELFv2 ABI. However, musl libc does not support the ELFv1 ABI on ppc64 at all, regardless of the e [...] Content analysis details: (0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
qoriq: new target
|
expand
|
diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk index 76c5fc114a..2167127916 100644 --- a/toolchain/gcc/common.mk +++ b/toolchain/gcc/common.mk @@ -116,6 +116,7 @@ GCC_CONFIGURE:= \ $(if $(CONFIG_mips64)$(CONFIG_mips64el),--with-arch=mips64 \ --with-abi=$(call qstrip,$(CONFIG_MIPS64_ABI))) \ $(if $(CONFIG_arc),--with-cpu=$(CONFIG_CPU_TYPE)) \ + $(if $(CONFIG_powerpc64), $(if $(CONFIG_USE_MUSL),--with-abi=elfv2)) \ --with-gmp=$(TOPDIR)/staging_dir/host \ --with-mpfr=$(TOPDIR)/staging_dir/host \ --with-mpc=$(TOPDIR)/staging_dir/host \
At configuration time, gcc assumes that ppc64be targets use the ELFv1 ABI, and ppc64le targets use the ELFv2 ABI. However, musl libc does not support the ELFv1 ABI on ppc64 at all, regardless of the endianness. Therefore, when building for a ppc64 arch and with musl libc, instruct gcc to use the ELFv2 ABI. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93157 for more info. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> --- toolchain/gcc/common.mk | 1 + 1 file changed, 1 insertion(+)