Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1097584pxu; Wed, 6 Jan 2021 12:10:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzinLsPFthgRcJEHgrBlg7BLf9P9Oa1du9FNIY/x2FgCMpGPFq4zOSM8I9dp463zBBKb3qt X-Received: by 2002:aa7:d915:: with SMTP id a21mr4981435edr.251.1609963851551; Wed, 06 Jan 2021 12:10:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609963851; cv=none; d=google.com; s=arc-20160816; b=OEtN2zEYRzi9jr91BeJfQdgFyfug1+UyyuQ5nI0rPIGBx6MCiacjx8Jjp/BfyYIrQA OjtqBJjh5pb/AMasNPK1TNVDWOlhFekcvdQ0bw02oLANZDWuTrA36EOdUUaP45Nl19Mo YCZgn6KCsGEhGYABKH2KVZM0szsOLzPgPKDRVRRC/LZrjb9FunQJ0eSa7Tgpy9He/vW6 jFKMNlnObLskJ9t45/np93R5S4bkEkoUFP1ZJWHIJxAjmkPzN6dQN5F4VKdfzP8TVxfF JhFC0BQHM0BlzzoWAEUyMyh3GDzqHA35RN33ALVAoFZCQnH0BJ3xYy4HF9+j2O6mj69g 26HQ== 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=gVx8E+xZ9lrHiS0GOCboaARCIQvynUD7BXGkbX/mth4=; b=Mxr1ND9dBlOYi2SSXd1XciRDjI3+vuu9RXTixI1Y0m0Ze88PFnuF5jGeqHZQBFHNL9 +i8v/Qz9dnFwNYBy9e/OLqPNceO2ot/SL6sq+t933D5Ew7Ddecbeb05PIA3MiC9nIh6e gMW2twscAAPLPjFXg05GUjU9yeSN4qvXwQHuzR4E1xpvOch6zsICoD8wktBiBNY+yAlG 6tC6jHDbF+Rlr1cuSMThC+AMrowuJ92p3emBJjdsvj3L59PfC8Uuy1PpaSQ8vxR7yodq 05uACysIKhlWvqf3werrpajQyqhEQ1JB1ADNEHKPM/KXe7Lu1NdEOcByY3LJiDx6mLUT r6tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=D5BR4ONH; 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 18si1250353eju.589.2021.01.06.12.10.28; Wed, 06 Jan 2021 12:10:51 -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=D5BR4ONH; 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 S1727172AbhAFUJG (ORCPT + 99 others); Wed, 6 Jan 2021 15:09:06 -0500 Received: from mail-40136.protonmail.ch ([185.70.40.136]:63970 "EHLO mail-40136.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726831AbhAFUJF (ORCPT ); Wed, 6 Jan 2021 15:09:05 -0500 Date: Wed, 06 Jan 2021 20:08:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1609963703; bh=gVx8E+xZ9lrHiS0GOCboaARCIQvynUD7BXGkbX/mth4=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=D5BR4ONH0+Jq/LU0r/+wUjKpN7kzcWdAhFr9x7aMgFdq26mi41Ql2zYLn3g4AuR7y /LrjwC+6fobtndVgofP13pV8AsRd5qvnyTf/EMj71FnmDVTDO7MDk1O3T+Y4BNnyxo CSh1T5hd9CvPzhYWfS37WM829VOabqEnMxuz4ROjYgyG7ovyA3bp/6B1LB4rvxOKet UlyHGyu9IXcwWAqczIjrmR9pVtNTCzL1Qs4SuMN8kSiMgRm4yCX5FeCgufBxYrZIrp AfpxXUy5EWWVVuO24Qqga4QaKpYiWWbWYUzF89n+Cht+IGJn/tNQeKSn+XZeEDNz5+ v+0bgIMZtAblg== To: Thomas Bogendoerfer From: Alexander Lobakin Cc: Alexander Lobakin , Nathan Chancellor , Kees Cook , Fangrui Song , Jiaxun Yang , Alex Smith , Ralf Baechle , Markos Chandras , linux-mips@vger.kernel.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH v2 mips-next 2/4] MIPS: vmlinux.lds.S: add ".gnu.attributes" to DISCARDS Message-ID: <20210106200801.31993-2-alobakin@pm.me> In-Reply-To: <20210106200801.31993-1-alobakin@pm.me> References: <20210106200713.31840-1-alobakin@pm.me> <20210106200801.31993-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' Misc: sort DISCARDS section entries alphabetically. Signed-off-by: Alexander Lobakin --- arch/mips/kernel/vmlinux.lds.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.= S index 83e27a181206..5d6563970ab2 100644 --- a/arch/mips/kernel/vmlinux.lds.S +++ b/arch/mips/kernel/vmlinux.lds.S @@ -221,9 +221,10 @@ SECTIONS =09=09/* ABI crap starts here */ =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) -=09=09*(.eh_frame) =09} } --=20 2.30.0