Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1846501pxk; Tue, 1 Sep 2020 09:08:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx041EAB6ddHHQspds2PDXcAPdusB5JQEIfEf1J5wcpU1eDapcAwM7pcWmj3XiHwrkDtIKx X-Received: by 2002:a17:906:a885:: with SMTP id ha5mr2006392ejb.511.1598976510318; Tue, 01 Sep 2020 09:08:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598976510; cv=none; d=google.com; s=arc-20160816; b=ne2GZyL0Z4khPAu8blqoGjdReuTp4UJ/IQVDIusk4PDXZvUUAwisKgMGcih0i6KBJX TX/C2Ypqx8ffYZW63J8Krjy40neDrPTA5RpaO7vNc8D/lER+RVi0wu+si5mVAL4Li/ms smSuG4fbE+iPigR98X7bYZdtMFkh3GlvGy6TVLVr4h7zWAy/ENY0kpOXd/B2XBNftn1l DSf3L9UQ8gjDB0dTMLLL/moLYUVCv2fbvTC7n6s/OgkXHZeiB9kqgPbdr3b07rJvp3ev UZP2V33cl4fIdcDar3kHKQ45cdI55T6fyWIvOloRoKFlC5M6nIJet/zY8lZLOZtO9Ltt YmoQ== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=mupIaS0dTEeO07mNOTIqZq0+JowOp33CO07KogYwAJE=; b=NdeiN/8eatb7AEdCEHc57AztQ+KZ4R4lwYmfhPc9VxdZopfgocIGgVH/GcwpA9WQKr FFXlQtok+kFfVV+ms5hTqWwdWKn/5ou1T3z3ZUYBkRvftRmw7qQZfEAiNEiCBAYhpBjZ bcI2u6+StJarlFyB34vSSPkOB6Jm7pCbMhmktLj2h62csjTcTZynbjvSnobGNP88g5jX g7YB84Ot/X1mn8k7ekbRs57BGhYl45brYNIid1WseDaBq3mRzOwkaEYoBPswZlL+rgtQ 16XsEoR+vH8HKKCxVZSAmDiaRbDMH2GfuYvvzXiq+RlxSEwA0Ix/9PmsLzhjzadm/Tjc 4GXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DHCTElMc; 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 k24si875240eja.436.2020.09.01.09.08.04; Tue, 01 Sep 2020 09:08:30 -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=DHCTElMc; 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 S1729211AbgIAQGL (ORCPT + 99 others); Tue, 1 Sep 2020 12:06:11 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:51183 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730544AbgIAQFs (ORCPT ); Tue, 1 Sep 2020 12:05:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1598976347; 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=mupIaS0dTEeO07mNOTIqZq0+JowOp33CO07KogYwAJE=; b=DHCTElMcNKOtA8mxdODVINkr5S2kadOYLpXEfnKfmkF3MqETQw3WMvYpF2cpNV7IfEhEES JX4A3QNka9CD/bQzkqKMAfCFR1ADaigIZ4PGs2iflN1imEdJkCPmVRKN8135+bGwbSeRCp 41t+1tnvsrUoIulq4G8AWGVHxX6eCi8= 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-202-tu6J1amPNxGCLdngGv6UsA-1; Tue, 01 Sep 2020 12:05:44 -0400 X-MC-Unique: tu6J1amPNxGCLdngGv6UsA-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 D82D518BFEC5; Tue, 1 Sep 2020 16:05:42 +0000 (UTC) Received: from treble (ovpn-113-168.rdu2.redhat.com [10.10.113.168]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CECD05D9CD; Tue, 1 Sep 2020 16:05:40 +0000 (UTC) Date: Tue, 1 Sep 2020 11:05:38 -0500 From: Josh Poimboeuf To: Julien Thierry Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, mbenes@suse.cz, benh@kernel.crashing.org Subject: Re: [PATCH v4 0/4] Remove dependency of check subcmd upon orc Message-ID: <20200901160538.a2t3qiagdanx6xtw@treble> References: <20200825124742.29782-1-jthierry@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200825124742.29782-1-jthierry@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 25, 2020 at 01:47:38PM +0100, Julien Thierry wrote: > Hi, > > Matt Helsley's change[1] provided a base framework to opt-in/out > objtool subcommands at compile time. This makes it easier for > architectures to port objtool, one subcommand at a time. > > Orc generation relies on the check operation implementation. However, > the way this is done causes the check implementation to depend on the > implementation of orc generation functions to call if orc generation is > requested. This means that in order to implement check subcmd, orc > subcmd also need to be implemented. > > These patches aim at removing that dependency, having orc subcmd > being built on top of the check subcmd. > > > Changes since v3 [2]: > - Rebased on v5.9-rc1 > - Renamed objtool_setup_file() to objtool_open_read() > - Fixed misplaced elf_write() when file->elf->changed is true > - Avoid additional allocation for orc data and compile out orc > definition when not needed instead > > [1] https://www.spinics.net/lists/kernel/msg3510844.html > [2] https://lkml.org/lkml/2020/7/30/415 Thanks, I grabbed the patches and will work with Peter to get them merged. -- Josh