Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp1595723pxb; Sun, 10 Jan 2021 04:02:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKzm3RrKZADIVEjfGMfL+HxAN0Rbz5dh6vD298cCT95Fhcn+kA7un2w/8DAM1w54MNEjoK X-Received: by 2002:a05:6402:4c1:: with SMTP id n1mr11047108edw.66.1610280127915; Sun, 10 Jan 2021 04:02:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610280127; cv=none; d=google.com; s=arc-20160816; b=tl7hdMXgQ0pyXiZzrgrVz6Dmj9fm3Is3lL3bbVEwNl7YX7QLxQKqn7nuYeHhCHE8jI 9dsyoHhf7nXg5IrDzuzUCN/KZ8RcThPV5eMyR0WIfSe7lwE9n0tRjoSUCZjOoGI2n10r SIxitCgWnWLqz/tcVriIUwAOsp4QYBH5Kv82ctfRWamOlNXoGlXB1Uh39Pv2Mjke4g8B 9ulgW/qYIXt1wyefIi3afktUVqkeuzqe4AKN2wJcdXIyuUz2i9mKjBfgi8TDVZMXBwVX UGpqAABFNLiidEL32NEQcJnZhjByRqwjpCzekjCFtRSurAHHDZFkCi2uSCUvUbxE4Acd h8vQ== 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=9X9TtaxhK4MsjM77KJSI8oMJqQq5vrXLNYznXkmw+KE=; b=j3D7Q4S8biC0e9Ee4DLxDA8xvQjFpqYi+sIqGRJk9zVkeY1EXHuiUIhp0kA9pLLaXQ TNyHkd7K/z67f7ZIo99haEXAmxqxkYVoUVBjcVXNh9VwK0w0M8F7tzfZ1EEMsFlgf5Wz I++fA7jfEZjWTKeT1pYsWHEwgJVn4QrLKjfsgAmc6GXrYa6A3yY1MaJULoI6QlSx5DFw LyXRTHWcHpKIBJaBKC1OGjsaeEQW2OHG8TRVhzq7RFPQDxQ+uzBM458DjO4y9Jh2zGZo iK0DT5fxxmQHEl3JWIjulM7/pWUFQZwcLS411l7pQt0SgNi2lisQgwn7/GcFSW+Lmuof zbsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=VWdf7Pv7; 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 n11si5024172ejg.99.2021.01.10.04.01.44; Sun, 10 Jan 2021 04:02:07 -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=VWdf7Pv7; 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 S1726456AbhAJL6C (ORCPT + 99 others); Sun, 10 Jan 2021 06:58:02 -0500 Received: from mail-40133.protonmail.ch ([185.70.40.133]:33498 "EHLO mail-40133.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726341AbhAJL6C (ORCPT ); Sun, 10 Jan 2021 06:58:02 -0500 Date: Sun, 10 Jan 2021 11:57:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1610279826; bh=9X9TtaxhK4MsjM77KJSI8oMJqQq5vrXLNYznXkmw+KE=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=VWdf7Pv7GU3OQbBGG8mq7oifuAMWGLdcebsIIG0VJqMxSXYWA6gYp1trUxbhMZ+5u kVyNdxORjLV6pYYeEAt6F0oaCveQfzOzGwU6VCUm5JY6fBBTKCLG5A+vsbVobGdD1M dw0HwQbsYF+S0LX/wNy5iJpN8AdYDgEjD02cs75IDkccGGttqWhlEaSpRa2g44ibS5 8vVFHMj6zFg/wICE8+oFGRAPIIRXwh74CipLniLykFRLxz1VyA398AN4TCfL0eOdbZ o2p6KtspEKAzSMpEB5Kn4e25nYWgS07hV/52/4LIpt5iy+FFGZiuDZJfGy0jrpwtTV 70Ox9sSoqMfSg== 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 9/9] MIPS: select ARCH_WANT_LD_ORPHAN_WARN Message-ID: <20210110115546.30970-9-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 Now, after that all the sections are explicitly described and declared in vmlinux.lds.S, we can enable ld orphan warnings to prevent from missing any new sections in future. Signed-off-by: Alexander Lobakin Reviewed-by: Kees Cook Reviewed-by: Nathan Chancellor --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index d68df1febd25..d3e64cc0932b 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -18,6 +18,7 @@ config MIPS =09select ARCH_USE_QUEUED_SPINLOCKS =09select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU =09select ARCH_WANT_IPC_PARSE_VERSION +=09select ARCH_WANT_LD_ORPHAN_WARN =09select BUILDTIME_TABLE_SORT =09select CLONE_BACKWARDS =09select CPU_NO_EFFICIENT_FFS if (TARGET_ISA_REV < 1) --=20 2.30.0