Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp244389pxu; Thu, 7 Jan 2021 03:57:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsliF0T+X80g+tNVHSh9SgtD58n8EXaw3kGcDHdQsjQcxtVQag1VSx44TVVG1jKG23kqny X-Received: by 2002:aa7:d916:: with SMTP id a22mr1434052edr.122.1610020651603; Thu, 07 Jan 2021 03:57:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610020651; cv=none; d=google.com; s=arc-20160816; b=oAUNKndMG8ba99dpvTxDMzDD8QKATuNjBv+XSkVrY5QJN++Kp8Ilgth/Exk2A19dm3 c5UlpkJJAT02BjR7nRVWcxFqgTxvu0y6ZOwg4Gz0jwXqfr+6QhgrT8If0kYeiA5od00B JlnssgJvb1DXY9vwSM9+PLVzt/7tTW92iM3mAh9SzK2d3ihDPCtLKfC36ItKQC0iwqeB ca+LD7+3kjWoo1VUbeiMTlzxWT38pYq6DTt9A8kwwkO3lWXoX10hDWED1YPNYgfDhOSO MaB2vueMJ7ipEtrr9Fl+Xx6PNWPxXs7UgeNvgciJ3o6D2SvQ67iYfDdSDgH+eX3iuKXh Rlxw== 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=SqdbCpuOayXIpahXJyxGrdYgVVYs2Bpcin5erTZOX3Seq4wN2my3MI5muG+0n8EKXE mlaVYjYTm/l0Oz8meM4wSJvcvAtFdrvLp+zpb86jza6QNnKjvF/dG4EPsmzl72HU8+hF W+IoLKF+gC6Dix+rqpbD3NQo6gBZo0RqtORkhUK7q5Iz1o9Zs9cKdv2JyTqnRe5uqGvy yPbohnZMZN7gOqHTu60LwB/8yfEYRByvbAad1XqjoBp2Synm4jNlyn8CdSs/572gfVFu frqSGlKli/jdAuvxLhB++YgL5lMb89ghUrYflX/HApawli1Tu0nXYGABQsdjqe9TGdVb zWtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=QSf4PK1l; 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 w20si2062740ejc.188.2021.01.07.03.57.08; Thu, 07 Jan 2021 03:57:31 -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=QSf4PK1l; 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 S1728126AbhAGLzS (ORCPT + 99 others); Thu, 7 Jan 2021 06:55:18 -0500 Received: from mail-40134.protonmail.ch ([185.70.40.134]:49104 "EHLO mail-40134.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725965AbhAGLzS (ORCPT ); Thu, 7 Jan 2021 06:55:18 -0500 Date: Thu, 07 Jan 2021 11:54:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1610020475; bh=1c0zIRSp5j+9jPf96D96lWaXSqjKgRxuaqZWXnp1GJA=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=QSf4PK1l/0z+lqNG/RN+SWI8NiSqHOQYaqNMT8tTimEIsiiENHGqnuihCuJ3YfoTS PwSAP0XUEjMITW1M5igKo6aiOLj+hPQ/VbHC404RmbVM7zmG89DsY0Fv2hyhFJ4ZNz 1XPd99TE8cWH/9iL0qyVCv2k+6igCBxmqW7kCSiAKWcPe1GAvIEAmC+/qJlZWV3IF/ HegvS3yUPHnrgTtRi1vsPzSH02S6gvkG76xhpSPZLFAlcqCM6jVtk3HiLdvJT8g6Cj aIT5D9n9qMw0z1SZ6HCDiay0gmxBlNIf12r3H+iRq7DHCrv6PnTUtDcTvsP714KN+m djC48Y9URNyEw== 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 v3 mips-next 7/7] MIPS: select ARCH_WANT_LD_ORPHAN_WARN Message-ID: <20210107115329.281266-7-alobakin@pm.me> In-Reply-To: <20210107115329.281266-1-alobakin@pm.me> References: <20210107115120.281008-1-alobakin@pm.me> <20210107115329.281266-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