Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13780542pxu; Mon, 4 Jan 2021 04:26:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJyTh0Gj4NI2vGHz6Mi594FJ/e0KDgb9oSTBqQdxKMjM0ran4QEsOHNmWwS2hq7dcmexJt/Z X-Received: by 2002:a17:906:6a92:: with SMTP id p18mr1520099ejr.308.1609763177023; Mon, 04 Jan 2021 04:26:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609763177; cv=none; d=google.com; s=arc-20160816; b=briwFHaMCP/bg1+HeD/c48ezIa53Y0yDSM0mkKvHLJ6AFEqn+Bn9MrWDkwAraEiao0 +TlRpZbgeMf5MfnuT3lghG77hW7DgCzKF9QUui5FWgaKgfw2cB1biaDGchAwZWQDqAIS LPBp1aZOD2mksDZFa+/OXDUbiLCBMF3wLRxUZXF6iJMBkwhL0pTCPVH0vr2cRefmAbkm 3GmCD8jJSrBeYkISXdC8ugmg0/ocn22X6JuzRcTCQ+0j/vZI3x6om3n5KWh77tqLYMWj EiJzeWCklryBCaEnNux9UfxqRbFt0M83nLUK96Z288xdeKv0ElGTx71+S7ks+wDFC+eO 3kVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=SIcv4XaKrE3sjxZfC8U6t0751adTjmCuETpzD6NuSCs=; b=RtHx5ZmVhU5kr7imSriBzWTO0P6Gep1/SAeNk6Z+9U6F2ifZlosC9qzLqjnuQehPGR YC/I1qkQg5iMg6jclSOkdTbw/AYB8Eq8D50Kq5D2Ewg/IyMZJ6wr5RaUKm1T981wc3WS fkuDLSJ1oG2OYNvzz7hkFVG8W+H3pzLONBndK9fdKN3YMQQZOL1JNRC10fSufFa8ooy9 +NGVW3S+0XTt8/q8mOG9EA8BjOv19SAwl22lkW78q3761058J8y9S5M+UrK7YXFfdm5V 2+YQRg96K/OXaBx04jL65tQNOzOOW3mTr3en1QSPjZNm51zB8iVUyl+BQSfZx7POR7Uz gmRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=bPMmaBiA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y7si17276349edt.257.2021.01.04.04.25.54; Mon, 04 Jan 2021 04:26:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=bPMmaBiA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726098AbhADMVg (ORCPT + 99 others); Mon, 4 Jan 2021 07:21:36 -0500 Received: from mail-40136.protonmail.ch ([185.70.40.136]:21340 "EHLO mail-40136.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726234AbhADMVf (ORCPT ); Mon, 4 Jan 2021 07:21:35 -0500 Date: Mon, 04 Jan 2021 12:20:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1609762853; bh=SIcv4XaKrE3sjxZfC8U6t0751adTjmCuETpzD6NuSCs=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=bPMmaBiAOhYlDJK/WP/HejMz608GEwc4rUQd3zhL6wzuyuY7BGoviLNtY/TRG/QQj 1Lnm8VO6jaYUmvQ5BukLRA3Vgto2s225dVo/Fl/MiYpv5SLQCn0KFpJPOFuk2Pnk5K VHt/G6EpflXQo3uLKWn3FCgetsywnCUs43v4X7Nn/cbODlUwyFk/TAHUrTZxClz21S S9GzydYwIHrYfY79v/ECshGODjFcK034OAOPbp09euD4AEW09WryoI8RAecgCpNY6T 77E4PkMd3S41J9sz9k02re5tp/UwsYms57WlZOn0V11NIDhmlSiqfTTLMu61PBFs49 L+kNdYA80BOZA== To: Thomas Bogendoerfer From: Alexander Lobakin Cc: Alexander Lobakin , Kees Cook , Ingo Molnar , Fangrui Song , Jiaxun Yang , Ralf Baechle , Alex Smith , Markos Chandras , linux-mips@vger.kernel.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH mips-next 3/4] MIPS: vmlinux.lds.S: add ".gnu.attributes" to DISCARDS Message-ID: <20210104122016.47308-3-alobakin@pm.me> In-Reply-To: <20210104122016.47308-1-alobakin@pm.me> References: <20210104121729.46981-1-alobakin@pm.me> <20210104122016.47308-1-alobakin@pm.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Discard GNU attributes at link time as kernel doesn't use it at all. Solves a dozen of the following ld warnings (one per every file): mips-alpine-linux-musl-ld: warning: orphan section `.gnu.attributes' from `arch/mips/kernel/head.o' being placed in section `.gnu.attributes' mips-alpine-linux-musl-ld: warning: orphan section `.gnu.attributes' from `init/main.o' being placed in section `.gnu.attributes' Signed-off-by: Alexander Lobakin --- arch/mips/kernel/vmlinux.lds.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.= S index 1c3c2e903062..8ac95269124a 100644 --- a/arch/mips/kernel/vmlinux.lds.S +++ b/arch/mips/kernel/vmlinux.lds.S @@ -222,6 +222,7 @@ SECTIONS =09=09*(.MIPS.abiflags) =09=09*(.MIPS.options) =09=09*(.eh_frame) +=09=09*(.gnu.attributes) =09=09*(.options) =09=09*(.pdr) =09=09*(.reginfo) --=20 2.30.0