Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp1594215pxb; Sun, 10 Jan 2021 03:59:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiWJ/PXZceRqIuGQW85UIYM7X5/B71pTNdobOCw3YBv4lkcNRm0kHohaTKFV4Uav0B5VDN X-Received: by 2002:a50:cd9c:: with SMTP id p28mr10691549edi.83.1610279978927; Sun, 10 Jan 2021 03:59:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610279978; cv=none; d=google.com; s=arc-20160816; b=pu8VkOglZaV40AV8diWaj1a351wRWXzAdFTO1kIREJtnW0w1Lo9ETv7k2TYanWphtg lJdFzdKqoCyUJsThVNFMK2GIYXzKjtq5y5BV+4+dvCavrY2vJu3UglMsl4Y3+o3/u0Km Tq3/4kbB/OeBL6jNXDK/eb640dXYzXBgtY4IFuTyPeq11SXS52IR3det5TMUrQ0u2CoD 0pDaqA8spj9kySGaKVE584MEdQF9OVyfhY3lf1DwK7MOX+aESyIHE78VlXIUnvKg9xq6 IMmexvmNlrzWOQGm50T1DPXcRS3EJzr8wEtxXANjUYWFDgdr57rgUcphqOStwnIJH2Ro NBAA== 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=z4p3GtI1grxbS9iYRUU8FxMU4I/9YCWsZkDii++EkHY=; b=KJpuKN2S8njMqya62IesI28J216TCLY4rWYjqXXv84Bm5p8etLjvnwGSDz1S2QrpOS qvc7+v+1s20QrR09Ro2m5FUXUGLQT68jfrqo6U7MqnPBnEguxiv2HxqG/Pr7vuKTXtKO dXgJgBsoN8e7Fl5LnQJ/oegwz0nubNPczIBzruBCgoIWxnpAN1rkrGUnSiOT3YpACqpq qYDrKKlwVlc8t/oGbi3JdpJ+FoMN5TM+0syODU/EALChjSUogiuXqYmfFBmh6O+En1Xa tS0RMAo8c7qYhXwYfV12FOSEOWVFzS1jTdj8s9+rueQcnZjVYI+RUrsxbQgYp+wHrQSJ pCjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=kXksgyJ2; 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 t20si5422725ejd.719.2021.01.10.03.59.15; Sun, 10 Jan 2021 03:59:38 -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=kXksgyJ2; 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 S1726665AbhAJL5K (ORCPT + 99 others); Sun, 10 Jan 2021 06:57:10 -0500 Received: from mail-40131.protonmail.ch ([185.70.40.131]:36666 "EHLO mail-40131.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726608AbhAJL5K (ORCPT ); Sun, 10 Jan 2021 06:57:10 -0500 Date: Sun, 10 Jan 2021 11:56:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1610279787; bh=z4p3GtI1grxbS9iYRUU8FxMU4I/9YCWsZkDii++EkHY=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=kXksgyJ2ZKnkOB56k/OUlWAYbFEoy4qCZSRRM1QCOSsoJRz/wN/f5197IAyqeLjXc vLyb84amAp9xJQbLkjaOW6bO9+xBinyP0z7mdCuFnsLUEDxyTSVAdNDf3YSeTy/j+T R+e3aG2BGgb4V0StoGGkcZXJgaUDxNuwvKRutZHUijsPJL4zcnWsWvOK7IgDNBitZ/ n0u1DjFtuYJIWqtYXZaANOVkHeDQb5+penkn9WIRCa3Y0/GEh0UJVvzxyUE2dmbfU7 ffc0bS5IU+Z4Jq80t84BDCiUCJXyZ/2KRO6A/NHDYRqQS0WVM9NARCVyAy1zwzPazn qsE28JKCwcStA== To: Thomas Bogendoerfer From: Alexander Lobakin Cc: Arnd Bergmann , Nathan Chancellor , Nick Desaulniers , Huacai Chen , Pei Huang , Kees Cook , Alexander Lobakin , Fangrui Song , Jiaxun Yang , 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 v5 mips-next 3/9] MIPS: vmlinux.lds.S: add ".gnu.attributes" to DISCARDS Message-ID: <20210110115546.30970-3-alobakin@pm.me> In-Reply-To: <20210110115546.30970-1-alobakin@pm.me> References: <20210110115245.30762-1-alobakin@pm.me> <20210110115546.30970-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 Reviewed-by: Nathan Chancellor --- 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 ae1d0b4bdd60..09669a8fddec 100644 --- a/arch/mips/kernel/vmlinux.lds.S +++ b/arch/mips/kernel/vmlinux.lds.S @@ -220,6 +220,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