Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1495423pxk; Fri, 18 Sep 2020 14:13:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTzmHjveEoY7oJVYi5MpHNU25/3j4/4cQlj0wJjkc6tGI3kmcnsC7oU0VgHkEVIa4xwmMu X-Received: by 2002:a17:906:4819:: with SMTP id w25mr37748948ejq.300.1600463605623; Fri, 18 Sep 2020 14:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600463605; cv=none; d=google.com; s=arc-20160816; b=zU+Bd20J7//WpcaMJ9JkdBPKvmax0C25ymg/goiuswQBvASyOJyjJNtHX0HMv1fpRY 5yVzWNBSoEWG5SKHrBM1pzdKQovMBAzI9fbPJGqCUtZ6jB//fRJUa62/TlaJGjtrv1yN ISakWCAEVs46OlXbBf6byWX/wBWovBQI/znIThL1AeznseeqgDwIb28Ahov79oIOJx6v 4HygnMwem7IcofMyVHajcab8mQX8t29bHudJ+SDS7NA/hTjHxm6sok8Oz9dPrBXjyEjp vjTuUL7TVUz4fkG3hrjEXsGf5O3EYHaN5w6MFQfjgOEV6zs6hcjGC3vvZZE5MRauV76v KZww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=asql0Sq9mQRCwtXwkfvy11Pk1zi8zsCd4+2USFTaNdY=; b=dDVW+BVIomm8gTZsPTk2p6OcgKOLCWRP4VuSCYbHxYr+/HKOAYyl5/VU0p3XbQ9Byn 9g2kM22VwsbEVi35noTn6HFO4ZPlmSvjfB5Lc5bGU4RAf18UwWRns2n6IMSUO6SD9NaO dggp7MP8h+lX8KZn+01vzZltiILQj3Wz5d43769Do6qs/OMckTxwj2RVDeEDAUog8U38 pXlxJXK0ADgytcsOV0pGuJQrV/2QCHMrPOgxx2XtwMxO33c5CDzrItxXPhnXMiZoV0py V53v0mXJfGpB7DlFkaVV5+xNaAA/98L03wuMvrrFaQitsM7gUQXyT8S07fditWE0Nb86 xMug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hLzKq7js; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e18si2822259edy.386.2020.09.18.14.13.02; Fri, 18 Sep 2020 14:13:25 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=hLzKq7js; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726333AbgIRVJe (ORCPT + 99 others); Fri, 18 Sep 2020 17:09:34 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:39858 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726118AbgIRVJe (ORCPT ); Fri, 18 Sep 2020 17:09:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600463373; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=asql0Sq9mQRCwtXwkfvy11Pk1zi8zsCd4+2USFTaNdY=; b=hLzKq7jsyFC7xVmsy1mQjsuBDyoaA2giKREpfoqTfNJHqZGjbPpyfP5LYmA5PTE2EA6U5h gOVr4uV5gcAoF46Legk5QdPOOLty9Z+nZuFrCv9OgHxUzSmFXiYvYRMsAuVAafJXQ7Dxn9 e6ZSJiLbpdm2jXEiB/uv/HxeFEE3t3I= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-389-TR6Rvtz6O2ygw0S9MH7nfQ-1; Fri, 18 Sep 2020 17:09:31 -0400 X-MC-Unique: TR6Rvtz6O2ygw0S9MH7nfQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 865DD1009464; Fri, 18 Sep 2020 21:09:30 +0000 (UTC) Received: from treble (ovpn-112-141.rdu2.redhat.com [10.10.112.141]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5CC025D9D5; Fri, 18 Sep 2020 21:09:29 +0000 (UTC) Date: Fri, 18 Sep 2020 16:09:27 -0500 From: Josh Poimboeuf To: Julien Thierry Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, mbenes@suse.cz, raphael.gault@arm.com, benh@kernel.crashing.org Subject: Re: [PATCH 2/3] objtool: check: Support addition to set CFA base Message-ID: <20200918210927.eh2tilurtuhc6q4a@treble> References: <20200915081204.9204-1-jthierry@redhat.com> <20200915081204.9204-3-jthierry@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200915081204.9204-3-jthierry@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 15, 2020 at 09:12:03AM +0100, Julien Thierry wrote: > Instead of "mov SP, BP", a compiler could simply set BP > to SP + constant. Handle changing the CFA base in such cases. Rather than what a compiler _could_ do, it would be good to be specific about when this can happen (presumably arm64). -- Josh