Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp295222pxu; Thu, 7 Jan 2021 05:23:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPJfRcuwKW3JuVTLcPCAPRDrjhU/HNRGt8fGF/5jH7h4FtBZ8BuQ8gH4tVHCCmmQXM3+6C X-Received: by 2002:a17:906:1741:: with SMTP id d1mr6565178eje.182.1610025831292; Thu, 07 Jan 2021 05:23:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610025831; cv=none; d=google.com; s=arc-20160816; b=k1z8mcGkwTmqe++lyL2rLOo99ngV8gkE00qcE2jpDJi0N98cagQ9vWMnLUBVHpfTIO AjrYPUlig6lcFNE8kmzo3fvVC6I/KuH3u4KeSnvzMmxIXf++J89UBC2YxhY3DvOrr3wh 71QmhGtKzO6/l28TqqocCzPYkLeganCq3ZtPBBcmOCE6/ZInwu+EnqTStvMp/oC2TGbv f6VcpVoK2TxnDTYHEUpCDrWIrLAyKTspvy/SOyxEZGWDt89LcocIlML3Ysg9j3T3jBpz A2fwEEz75CBIGwEa1NiMd9Jomj8zrXJoozGOlkoCaY/buNp5w1T2Za/q+J4ZIXMTXGFC FOUA== 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=1c0zIRSp5j+9jPf96D96lWaXSqjKgRxuaqZWXnp1GJA=; b=nd/Mxwr9scmfZkugCWDLeXC4FdBDEKkD47nnq15x0+XwC6zD90APPRYANwbMW+ddFY qu86ml+3sKUTMXWGhyCUWeidUO26irjD3iY7lDb16HbmalZgcQtap3a5Vy3o6TIvOOzz KAohu/UGx2c30iFSzBr9ajzz0IgXsgRHFGpZk1AZ51lsdeR4wqIDVggIA9Ok4+8Ertcg tbsEJA29phiYjq9ZWgEFdl1Mvc4yJjtnpw3v26U30l8Mou+CGbITX6dHNirV6sKN/1m+ HTYyDhFQUxldVkTvEYsn1iGEHOvzGNqIZ2N+M4cHzvW5XFxfX6Kv9njs+Rcshw1igRDF M7sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=j9+A6Rzo; 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 j17si2227853ejk.231.2021.01.07.05.23.27; Thu, 07 Jan 2021 05:23: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=j9+A6Rzo; 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 S1728511AbhAGNVx (ORCPT + 99 others); Thu, 7 Jan 2021 08:21:53 -0500 Received: from mail-40131.protonmail.ch ([185.70.40.131]:60383 "EHLO mail-40131.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728504AbhAGNVw (ORCPT ); Thu, 7 Jan 2021 08:21:52 -0500 Date: Thu, 07 Jan 2021 13:21:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1610025670; bh=1c0zIRSp5j+9jPf96D96lWaXSqjKgRxuaqZWXnp1GJA=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=j9+A6Rzo1K+21lSv9jbkpyTi94X4L1AEwY8GcldoLZ22ZOUGSJ2Z47oH8suBecI7Q WiRlK625R9bjiAh+jufBUDUGMSs/+RDV5y4Z6dvm9fEWFltioUP7EwDFJb+s9kN4Cx XM7hZQ/se4n+AoYwpLsiG7RfO9+npoochn7IoUxYMEA67UpupTAQQv+YdFOBjPUQFy J2dBlB1x62phBmSEqHe2bRSGtOAf2fvUCxi8b3A6w81TRJtNYKkMQmxZdj65DOdbWB 6Xr4F4YSvphfRHebhxl8jGB6JoJhsj3a3AhsD0l6YhAEk0Lf9Lf9aehhOvwabr1DLz 6lbOrPfdehkLA== 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 7/7] MIPS: select ARCH_WANT_LD_ORPHAN_WARN Message-ID: <20210107132010.463129-4-alobakin@pm.me> In-Reply-To: <20210107132010.463129-1-alobakin@pm.me> References: <20210107123331.354075-1-alobakin@pm.me> <20210107132010.463129-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 --- 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