Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06D9FC05027 for ; Thu, 2 Feb 2023 07:43:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232090AbjBBHnH (ORCPT ); Thu, 2 Feb 2023 02:43:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231971AbjBBHmv (ORCPT ); Thu, 2 Feb 2023 02:42:51 -0500 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B3C688495D; Wed, 1 Feb 2023 23:42:36 -0800 (PST) Received: from x64host.home (unknown [47.187.213.40]) by linux.microsoft.com (Postfix) with ESMTPSA id A79A520B96E8; Wed, 1 Feb 2023 23:42:35 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A79A520B96E8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1675323756; bh=3qU35kR6nm9/qdtMkBRKO5MFQ8eSw6OI7xVYMG8qPdU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hONvI3e0GsW7hJPLcxlcDOCGFQv9nEsAM58s8vmj+SktxBGS71H6LsGwW6rFfpKPF sxZ3btYfSM9XR2NeR07R7+VEqWKQsP10HiBErjXRDWnlujUAvocDiERW3Oi5K9fKc/ BmaFGuQS65bH+qQz9rwbDoYyISLXSIniZW+kuIg0= From: madvenka@linux.microsoft.com To: jpoimboe@redhat.com, peterz@infradead.org, chenzhongjin@huawei.com, mark.rutland@arm.com, broonie@kernel.org, nobuta.keiya@fujitsu.com, sjitindarsingh@gmail.com, catalin.marinas@arm.com, will@kernel.org, jamorris@linux.microsoft.com, linux-arm-kernel@lists.infradead.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, madvenka@linux.microsoft.com Subject: [RFC PATCH v3 11/22] objtool: arm64: Invoke the decoder Date: Thu, 2 Feb 2023 01:40:25 -0600 Message-Id: <20230202074036.507249-12-madvenka@linux.microsoft.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230202074036.507249-1-madvenka@linux.microsoft.com> References: <0337266cf19f4c98388e3f6d09f590d9de258dc7> <20230202074036.507249-1-madvenka@linux.microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Madhavan T. Venkataraman" Invoke decode_instructions() from check(). For Dynamic Validation of the frame pointer, we only need the "-s" option for objtool. Signed-off-by: Madhavan T. Venkataraman --- tools/objtool/dcheck.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/objtool/dcheck.c b/tools/objtool/dcheck.c index e2098c9ad282..cd2700153408 100644 --- a/tools/objtool/dcheck.c +++ b/tools/objtool/dcheck.c @@ -9,8 +9,13 @@ #include #include +#include +#include int check(struct objtool_file *file) { - return 0; + if (!opts.stackval) + return 1; + + return decode_instructions(file); } -- 2.25.1