Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp267719pxu; Thu, 7 Jan 2021 04:39:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuNdlpT1Ce9MF/LZ8PgsbgLMUtjTambBXyK896iZdX2TQ1tE7sl++BHHAH1PKX5whQdr1x X-Received: by 2002:a17:906:f9da:: with SMTP id lj26mr5909065ejb.467.1610023144759; Thu, 07 Jan 2021 04:39:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610023144; cv=none; d=google.com; s=arc-20160816; b=UGn7L6XD5WUxEelNYaEhyTsbLmjOngAq8W9FjF6GEmLknWGW4mfRmDxvXOivjrwItP 57fzh4q0R9bomCQ9616FT9lHvujH26r8gUL6Wkmk7nTYuzu2yP/ECi7NlxJ5861LEgLY LsC+QaTNimz6ixh+trOcBmMt1Z+NQmEfeVMEkDpnzJMLlgNt1E/A/YwfPcGigZJQ+45t mfBu83MKOLUZqePfTMOevFAf1Qwali7m13vypSJt/Xyqq9ztPL5hh7H0R6JWxWF8eSGx 7GI1nWC032fEDDCvxHusy/8e0PcWXkuPL4teU3+hYiR1pKEEYpZNdsXD5D2rWYqmIfOG PFIg== 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=HpPfurUMv6+bmu+iMghT8BArOJfOoiwsUTi2Kp/NB2xX+qYOadY/RuYmilx2OkLshH AlWkLgxq6HmBcMaNxJgb8eiVX+2s9M+KmjaJENvoikrah9mObuQClt91lSlqS8Vfk888 a2EusK9WDK2YtMFwe5tH+wlBySb0thYd4B0K1FnE+e76POce5WONOZ4toWKwq2p/sAJu y78pdMM+yrl0774e+qWq36OEb82ux6b8io8XBqn15LilwDgRvxW12hrwda3uGpoDEHP5 6JuiyxWVTxTwj1O18SMHzkFy7iFIhUkt37zyB0iyPyHluk97gpsBGzZ2ll7xXyCxvsH7 8lrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=SvZOZeHR; 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 d2si2130962edd.145.2021.01.07.04.38.39; Thu, 07 Jan 2021 04:39:04 -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=SvZOZeHR; 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 S1728219AbhAGMfk (ORCPT + 99 others); Thu, 7 Jan 2021 07:35:40 -0500 Received: from mail2.protonmail.ch ([185.70.40.22]:17024 "EHLO mail2.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728202AbhAGMfk (ORCPT ); Thu, 7 Jan 2021 07:35:40 -0500 Date: Thu, 07 Jan 2021 12:34:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1610022898; bh=012vDHOxvqVPo52Yrh8ZCe0PscXXJoRaQmC+Qol94bs=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=SvZOZeHRjbzSSnW4dvfM9BrtRGjLLTvIhxnVV3QgsCdA69aUJroaV24Xk9SFhlx+u sHD65gs8WP+lrkH3PIpa/Epk4dVLI8R4mARZ+do02zCYBZU0l36zTPiCSCG7IxDvJl vfv/aRCcswEfBYznLPw+IM4hpYm15nOy4rJQYP3BUAiw7L/JXI44SysEpxSxHp3Ahn o9sVf29pNp0w/t/SsQ9D2o/j5lx5/WLvT8sjVIczhfyXYjdWhdevSc0Y02Kp8Ecb2H 3GysfZh18+0wEbte2CXW9SSiFBSXXe2hFWip2eAR86tHqBY1ABt95QqvfCuSuoVA/P 9FnpbO50thbVw== 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 v4 mips-next 2/7] MIPS: vmlinux.lds.S: add ".gnu.attributes" to DISCARDS Message-ID: <20210107123428.354231-2-alobakin@pm.me> In-Reply-To: <20210107123428.354231-1-alobakin@pm.me> References: <20210107123331.354075-1-alobakin@pm.me> <20210107123428.354231-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