Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13779545pxu; Mon, 4 Jan 2021 04:24:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+awleZxsTrZWqWsCjR4gNigh/GwURAan1E6w89WBAG5Pf40p7Nr9eWOuv1G91/39gbwsJ X-Received: by 2002:a17:906:1719:: with SMTP id c25mr50285652eje.251.1609763064895; Mon, 04 Jan 2021 04:24:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609763064; cv=none; d=google.com; s=arc-20160816; b=uA96G8CYFL2TDHaFttmy2PrTTjvCEK/PUJNbCwispNCrXVzz1XzJCUdTDD89nx731f Q3znUeCySeFyrhIlvx7inAKSF8FvslrG4sB8MMNwaP95DZSa0NfK+1g1/8S0YDoEAWKc hdEZavWCyCVGs78Fr3mohym6ZnSRtpNdaQFoJ+j0ZtTq2VGY9HB9XwUOvJZ2bxlk9yli ZxSjmlFd/dk47FnYpRSsKmcqoA/TZUba0aKHPcrp8Xoj6vVg1x9GzBNLS+XQ2JM9kOI6 db4THpTuh7DMa37z7OjhE7j8dHGg85oc7tUlkU8gJfslYM2plOkhvxZpomPnpceiUnHu 1yPA== 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=FmvdsZCHCCE79sjLAYIX/gq7paKAr3hB9iXFALHlrb4=; b=zpgVQtve4ld9ivY/QXHe7qSAy+9Dd4EJnF/yoSRsk84xjwT9W3bYzhXnBZ65XM5LNg UlLRPrks5HbW6sq12yEDJvMO97YD/gg1opT30xyM8ZhkMdU6WrHjs2xNBni8J354uSJs 6HBB32xhEkUPJex0a/1R8jpFpD/xF6f07gPgb5jngYMDmTm8ZkL8X37BRZmbw/6vqtbD 0bbvqiSdYG2KJGzEcfKz9ol2jNg3umrGCFon0xdBcBzrigOxOeEFYIUrAm/m+CmConmc q4ligAsyko+i2ElRMuIFMHHhvGG/mzEQ67GLtnZ0Gi83uSXeTbRWQihnHo4lppIIlZNS zJdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=iA7fIKU+; 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 b12si33802630edq.488.2021.01.04.04.24.01; Mon, 04 Jan 2021 04:24:24 -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=iA7fIKU+; 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 S1726664AbhADMVm (ORCPT + 99 others); Mon, 4 Jan 2021 07:21:42 -0500 Received: from mail-40134.protonmail.ch ([185.70.40.134]:26930 "EHLO mail-40134.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726325AbhADMVm (ORCPT ); Mon, 4 Jan 2021 07:21:42 -0500 Date: Mon, 04 Jan 2021 12:20:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1609762860; bh=FmvdsZCHCCE79sjLAYIX/gq7paKAr3hB9iXFALHlrb4=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=iA7fIKU+iUGl8//KALpAwglGMr5bbfoGRBV0KXWxYGgiY+xJfFF0Uu/ZnFJ3d9zf6 F5IzM9pVLffdB9/RrvxNF75hHhZUmHIEDUD4TdEGjqZcwtsgkaMGT/QiwlgjlQz11n WD2k0M/tQeEc6eQZ84AT41ZjdG9o9VQOxJYDkH+unsRuZnRCeJQT4vaBjW80qIFhRZ nvVb1CbKri8IbpOKf6CCbrrvZdGlFuhC3mYue+leQ72E3cAcutiyYjVguTNtb19gOU dzpj9taWqP1L0j8ex9aoneS99+iQixpcPcuzZJ31ZI5wzLlxmkoIUxrKlxnrhtuumv e1Wm73KNVeLcw== To: Thomas Bogendoerfer From: Alexander Lobakin Cc: Alexander Lobakin , Kees Cook , Ingo Molnar , Fangrui Song , Jiaxun Yang , Ralf Baechle , Alex Smith , Markos Chandras , linux-mips@vger.kernel.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH mips-next 4/4] MIPS: select ARCH_WANT_LD_ORPHAN_WARN Message-ID: <20210104122016.47308-4-alobakin@pm.me> In-Reply-To: <20210104122016.47308-1-alobakin@pm.me> References: <20210104121729.46981-1-alobakin@pm.me> <20210104122016.47308-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 --- 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