Message ID | 20210815105119.3035569-2-stijn@linux-ipv6.be |
---|---|
State | Accepted |
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=wTBZ+0UZ; 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=OnHQud7z; 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 4GnZ1Y20Skz9sWX for <incoming@patchwork.ozlabs.org>; Sun, 15 Aug 2021 20:54:41 +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:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oTqctIdSqgM+cA2JE2gYlMRhkUNCgTnv5nciFv0pPTQ=; b=wTBZ+0UZ8DKK+l bbbCRnbD2BhF8J5Oyg3cZ9fBvv9z5RzdFZQMdaCirhN6HdH9/2/5SAhH0jRTQt+GNKhPFiOygz9Rv RgRifURmVbdjPf+10iXAEOZhDHv9M3bj+KljpbllL8/QSOa+S+ymKU0SntS2auN16XlQa4dVWIwdy jdSQ2ernAWAvLOEYgwttndQZAWKsC3yivjRbrSVG/8CvcI3N+ODmGVQAfMbY8A10tnD5w1GyzRJIW /AzlpvCjRqOtYm6e65q3pLTLETjOwwCQSid4QZfvoad8vm/qSyQqDtd9I+yf6CyjM7T08Q0OA69+u H5qPNmWgnplGLJTOCJNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mFDke-00F8qg-UL; Sun, 15 Aug 2021 10:52:25 +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 1mFDju-00F8lL-Qa for openwrt-devel@lists.openwrt.org; Sun, 15 Aug 2021 10:51:40 +0000 Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 63A124C1CB81; Sun, 15 Aug 2021 12:51:21 +0200 (CEST) Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id C1UNDf7uCxdM; Sun, 15 Aug 2021 12:51:21 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 120C549A2585; Sun, 15 Aug 2021 12:51:21 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.tintel.eu 120C549A2585 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-ipv6.be; s=502B7754-045F-11E5-BBC5-64595FD46BE8; t=1629024681; bh=i+UgqgPykGc7NzfeSqQCYQat3MXdJ7HTpYFdGA8ToLE=; h=From:To:Date:Message-Id:MIME-Version; b=OnHQud7z/SPo5M7MplBUTo0yDiTXO+3FYFSpKfJyUSxbK2jEIIxg4fuHT6btiCjyn APz5RcUwhVVWNXhmgudeso7/8y/Vp/kWGS8ZM+/aogQc8s47ajRKC1d0R7orAqouNR wAjx9oWWJm64ZVTYWbOKk6LHI9ALKdRrLDDclQZQ= 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 w7p4DtK8QjwI; Sun, 15 Aug 2021 12:51:21 +0200 (CEST) Received: from taz.sof.bg.adlevio.net (unknown [IPv6:2001:67c:21bc:20::10]) by mail.tintel.eu (Postfix) with SMTP id 9DE984451D37; Sun, 15 Aug 2021 12:51:20 +0200 (CEST) Received: (nullmailer pid 3035620 invoked by uid 1000); Sun, 15 Aug 2021 10:51:19 -0000 From: Stijn Tintel <stijn@linux-ipv6.be> To: openwrt-devel@lists.openwrt.org Cc: hauke@hauke-m.de, rsalvaterra@gmail.com, john@phrozen.org, rosenp@gmail.com Subject: [PATCH 1/6] busybox: fix compilation with GCC 10 Date: Sun, 15 Aug 2021 13:51:14 +0300 Message-Id: <20210815105119.3035569-2-stijn@linux-ipv6.be> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210815105119.3035569-1-stijn@linux-ipv6.be> References: <20210815105119.3035569-1-stijn@linux-ipv6.be> MIME-Version: 1.0 X-Rspamd-Queue-Id: 9DE984451D37 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-20210815_035139_035467_58EC5A61 X-CRM114-Status: UNSURE ( 6.87 ) 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: When compiling busybox with GCC 10 and CONFIG_PKG_ASLR_PIE_ALL=y, there are hundreds of errors like: relocation R_MIPS16_26 against `xzalloc' cannot be used when making a shared object; recompile with -fPIC 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 |
use binutils 2.36.1 and gcc 10 by default
|
expand
|
diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile index 32f0d2c755..76a1de33b7 100644 --- a/package/utils/busybox/Makefile +++ b/package/utils/busybox/Makefile @@ -18,9 +18,6 @@ PKG_BUILD_DEPENDS:=BUSYBOX_CONFIG_PAM:libpam PKG_BUILD_PARALLEL:=1 PKG_CHECK_FORMAT_SECURITY:=0 -#Busybox use it's own PIE config flag and LDFLAGS are used with ld, not gcc. -PKG_ASLR_PIE:=0 - PKG_LICENSE:=GPL-2.0 PKG_LICENSE_FILES:=LICENSE archival/libarchive/bz/LICENSE PKG_CPE_ID:=cpe:/a:busybox:busybox
When compiling busybox with GCC 10 and CONFIG_PKG_ASLR_PIE_ALL=y, there are hundreds of errors like: relocation R_MIPS16_26 against `xzalloc' cannot be used when making a shared object; recompile with -fPIC Simply solve this by no longer disabling PKG_ASLR_PIE, so that $(FPIC) is properly added to the CFLAGS and LDFLAGS. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> --- package/utils/busybox/Makefile | 3 --- 1 file changed, 3 deletions(-)