Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp243783pxu; Thu, 7 Jan 2021 03:56:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUVcBFCnEQvM79XPd76MkAYznJO5Vrr1cdfM6afH4iAckpBA4PFznPeq2/GnFF/Eq/dwLY X-Received: by 2002:a17:906:4d52:: with SMTP id b18mr5708366ejv.405.1610020568126; Thu, 07 Jan 2021 03:56:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610020568; cv=none; d=google.com; s=arc-20160816; b=jn8sC8F9ENVqZgE5uGKVuIHHqQMctmb2tZrPcPyvc/vjbRHBUxE659eajFjy5zmSzv 7MdhVh1Z3mJFvkVsMT9scmnPt59UDzuaLyWxNgMbns0N4i2aZk+oHFKvWhfrpD7lIpms l7IbR12JeAEBJJHoQXlYoXztOYC2es2UdMOsxHaef20JlPtvNa2GWDq7Skj01dy0KVyt RHKqEa3ro3IuBr/r9AOve+OUxZ4Fc3ZkqZxkPE0Rcbwrou2zxDoNT1m/9vi/5LKNWOp9 BygGsFy/LABWmZYvUtU1Bir5UtRi223HwUBnQi5NKsTm1QltOqzC4dphP78eFqQKyZg8 1RTA== 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=012vDHOxvqVPo52Yrh8ZCe0PscXXJoRaQmC+Qol94bs=; b=gU1nAtgWlPENkDJXXmEIh9/8UXbd6mqwc1931gH1YIKdoUQuxMr2AaqqR2YZdcV2hJ 1ZNt+gcw7Es0bMlsl0cxCreirX4NLJXXoCPVoxNyDdN/kqCYJRIq/X+xMZnHOltUYYrU 4OytQNfuvCA+BO1L9xAqvOlEVE3rtVUdsphyOZ2clOBo/T77ge2Kcfbp3xfMJ7jqIie9 YuLqm3DBTntbGIN0A82XTJ6sXrpHMr1t3OkfHAeDQR3t5UUxZdamdo5LuOAOBlR8fqVE PN4NlZWBqJkcidDxIFTr0jl/ZSEW3Ay434hGnzKP7aVngF8G/IZj7QAlGH8cQYdVztva qiDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=i5uzE6dE; 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 gy15si1973423ejb.752.2021.01.07.03.55.44; Thu, 07 Jan 2021 03:56:08 -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=i5uzE6dE; 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 S1728062AbhAGLyi (ORCPT + 99 others); Thu, 7 Jan 2021 06:54:38 -0500 Received: from mail1.protonmail.ch ([185.70.40.18]:19185 "EHLO mail1.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726229AbhAGLyh (ORCPT ); Thu, 7 Jan 2021 06:54:37 -0500 Date: Thu, 07 Jan 2021 11:53:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1610020434; bh=012vDHOxvqVPo52Yrh8ZCe0PscXXJoRaQmC+Qol94bs=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=i5uzE6dEay+n9oB4Ha9x/Bs3DGWcLR4jx8PQ0SGSMzWu2ZWPwxJVMdBGFV1E8aK6Q o+Pfj5c9RnGaj6rLxtfZOC1g1tY4txEHA6igfXQSmA7AbTuy2/Fy9loJDpkob/5/7m 208L/Ww9Mo8ERAqXwyUFibi4QB8kA+vu30v93S832oFg4vn4TvNjbEvKDmWiX2HV/B vcUVVoYlU69Pq1tVH/xSTAPq83rt0+2V6lmcW0QFjJFhDqd3Bww+m87Gp8yzQsuErx wj8mrqgQtKiSSW7ffLZYw+u77+w3Bmys9hpBU7Wh3HtwjGiPQKPI6N9q/tNZIIEVq3 O9IQ+NkMJa7Jg== To: Thomas Bogendoerfer From: Alexander Lobakin Cc: Arnd Bergmann , Kees Cook , Nathan Chancellor , Nick Desaulniers , Fangrui Song , Huacai Chen , Pei Huang , Jiaxun Yang , Alexander Lobakin , Sami Tolvanen , Ingo Molnar , Ralf Baechle , Corey Minyard , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, stable@vger.kernel.org, clang-built-linux@googlegroups.com Reply-To: Alexander Lobakin Subject: [PATCH v3 mips-next 2/7] MIPS: vmlinux.lds.S: add ".gnu.attributes" to DISCARDS Message-ID: <20210107115329.281266-2-alobakin@pm.me> In-Reply-To: <20210107115329.281266-1-alobakin@pm.me> References: <20210107115120.281008-1-alobakin@pm.me> <20210107115329.281266-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 (MIPS FP type, GNU Hash etc.) 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 83e27a181206..16468957cba2 100644 --- a/arch/mips/kernel/vmlinux.lds.S +++ b/arch/mips/kernel/vmlinux.lds.S @@ -221,6 +221,7 @@ SECTIONS =09=09/* ABI crap starts here */ =09=09*(.MIPS.abiflags) =09=09*(.MIPS.options) +=09=09*(.gnu.attributes) =09=09*(.options) =09=09*(.pdr) =09=09*(.reginfo) --=20 2.30.0