Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4597696ybg; Mon, 8 Jun 2020 11:51:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsuexniedwYXMaLgqsH1xTEWbBzkoVPA5PiGwp8+UEQ4Br+tgRD/1BQRYkL8H6sx3048ir X-Received: by 2002:a17:906:da05:: with SMTP id fi5mr22702881ejb.95.1591642289532; Mon, 08 Jun 2020 11:51:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591642289; cv=none; d=google.com; s=arc-20160816; b=Lnz7gb1AwTmILgscgj50SVJfvJah5TZw+wvJRBm7er4XZNCoet6UdEwkjQxR3psPKQ Sq++korp8vqYPP/J7IpJg2Ll3wW1mlp2wSiEfy44B4NuFahPCYRLj4ONZOGNMxkYLV6H Jn3TK01/YYogN79vdOMqb/3pYAi0J5r7WvlYwRE8d3K+rdstRQ4PThRvU+/XCnyNXyi5 ZaWtzE4vp6oLoj0kOvwb7jgAJibd/biyGFlIAtFh6gaMMQ1BuAWDSOguBOYjDp7M9jKE xEx1XdAix5Wt369XIeNsBqJ+yQ6WQU7I54jCZXAL0U19bhFn4QxQcb1zTrzYO76oK4ZR L4EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date; bh=NAiZcKihaSU411PTl02oc8cIdaDvjj3RHTN8SJKPKWY=; b=ZJk5SYyE76aCdHoXBUSse6rm+sMgaGdYQPTrhjeuvagfKcU1SvWRADjCD1wXF9ubbM F0ZUlfXeXosDGmxSc83Gqz/sV+tcbLV5ldA5Ui4dl8FDQh129yGJg1WBLdwnpon0sFpr avL+nsPZzJ3pEhq47tNHPxyUD2exDred12tk25P2zVUb4VEsb3ALq9KOEAEBIjxMH/Us jwH9Lhx091SkKRhkoZCg+QgCGFmDvofHyPcMSBKmsJWjsPv/dvdk1G3pY9KMCKmzBID9 LKIX877URlDiyQ1lTlfxHvcc8W9wJZ3cGYDT4N6m67UylH4uBX+OYKmJSY4HFsx2OYug g0gQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id no7si6272048ejb.145.2020.06.08.11.51.06; Mon, 08 Jun 2020 11:51:29 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725798AbgFHSt1 (ORCPT + 99 others); Mon, 8 Jun 2020 14:49:27 -0400 Received: from ex13-edg-ou-001.vmware.com ([208.91.0.189]:31392 "EHLO EX13-EDG-OU-001.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725280AbgFHSt1 (ORCPT ); Mon, 8 Jun 2020 14:49:27 -0400 Received: from sc9-mailhost3.vmware.com (10.113.161.73) by EX13-EDG-OU-001.vmware.com (10.113.208.155) with Microsoft SMTP Server id 15.0.1156.6; Mon, 8 Jun 2020 11:49:23 -0700 Received: from localhost (unknown [10.188.145.109]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id BE76C4051D; Mon, 8 Jun 2020 11:49:24 -0700 (PDT) Date: Mon, 8 Jun 2020 11:49:24 -0700 From: Matt Helsley To: Julien Thierry CC: , , , Subject: Re: [PATCH v2 1/4] objtool: Move object file loading out of check Message-ID: <20200608184924.GA1284251@rlwimi.vmware.com> Mail-Followup-To: Matt Helsley , Julien Thierry , linux-kernel@vger.kernel.org, jpoimboe@redhat.com, peterz@infradead.org, mbenes@suse.cz References: <20200608071203.4055-1-jthierry@redhat.com> <20200608071203.4055-2-jthierry@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20200608071203.4055-2-jthierry@redhat.com> Received-SPF: None (EX13-EDG-OU-001.vmware.com: mhelsley@vmware.com does not designate permitted sender hosts) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 08, 2020 at 08:12:00AM +0100, Julien Thierry wrote: > Structure objtool_file can be used by different subcommands. In fact > it already is, by check and orc. > > Provide a function that allows to initialize objtool_file, that builtin > can call, without relying on check to do the correct setup for them and > explicitly hand the objtool_file to them. > > Signed-off-by: Julien Thierry Reviewed-by: Matt Helsley > --- > tools/objtool/builtin-check.c | 7 ++++++- > tools/objtool/builtin-orc.c | 8 +++++++- > tools/objtool/check.c | 37 +++++++++++------------------------ > tools/objtool/objtool.c | 29 +++++++++++++++++++++++++++ > tools/objtool/objtool.h | 4 +++- > tools/objtool/weak.c | 4 +--- > 6 files changed, 57 insertions(+), 32 deletions(-)