From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EBAAAC433E6 for ; Thu, 7 Jan 2021 12:35:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C235E23359 for ; Thu, 7 Jan 2021 12:35:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728243AbhAGMfl (ORCPT ); Thu, 7 Jan 2021 07:35:41 -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 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