Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2989375ybk; Mon, 18 May 2020 12:58:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrV7mMUFIjATfY1FRqBaAwvKJ0R6HlSvsXQ46jd/3cSZ3e0W3MtMWFdcMwa2wGunTjSHZt X-Received: by 2002:a17:906:f916:: with SMTP id lc22mr16568143ejb.96.1589831924836; Mon, 18 May 2020 12:58:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589831924; cv=none; d=google.com; s=arc-20160816; b=I3tMoDzWWAuWWtrrV/vYhgEDcZ+W6v7Teaq3riFFWHLmgK1RpJdGr0H49K/IXx5IjV c9ClOy6gXqS7EoiK8zMw3sp5FUYu2e0R76vr+GGvIrDS8a6MsFbW9GfVkMyVF+19Po/H EGuWFprnTsfPSluBJYXaPNUMHS4jv32Qa/RngxxrCgl+nVVJwmuP/sZAI9bDTYE15Ys+ 9auahY6k72zjzUQSaNQJ5yuXgzmoS14/zSzcD2wVpCSn8wUxg8OKJWhKpBb+cQf9XUYU fuiXXjpU/q6Z5TQF51QucYKhmPr7UB28Rmm2Rc6vZAwBHI1LckejWFBeg2oZsDB/83rc /XYg== 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=ZEfXtNiBaimJyQrRl2S7/klqIA0j+c9afIwQ3vtz3Tg=; b=pbeQF53o/PSEmXCePGW/reYMJi7zJLgmU4n2VIjnBb2eEQh96zu0sI3mdI+Pgos/Sw FN9C2P+ILt1EW/q7+LbeF03cpTJTPW+200ds0s/rVFWx8Z3LWNO/m2ZDR2r+NbS5U4Id dzjwwp5D+wK74RSqxGGxppDAo8evmJo3IF06jahM6zthCV9kVJQbsqTd0kp9ieccuaiW b12zSnuqZQ+ajB2wvGQSAVf6mFBEoNgey0BbEMgmAtvaOMvQAs3oe3M1XVUunjbE2oUS xHAUWihBGWRXv+B87jhDqzxAB/c2RYbx8YFu+nVtr9d/Ez66D1MH+BqFpnkaL38AWaub 9lxA== 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 t12si2985873edc.551.2020.05.18.12.58.21; Mon, 18 May 2020 12:58:44 -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 S2387859AbgERS0l (ORCPT + 99 others); Mon, 18 May 2020 14:26:41 -0400 Received: from ex13-edg-ou-002.vmware.com ([208.91.0.190]:20732 "EHLO EX13-EDG-OU-002.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730445AbgERS0e (ORCPT ); Mon, 18 May 2020 14:26:34 -0400 Received: from sc9-mailhost2.vmware.com (10.113.161.72) by EX13-EDG-OU-002.vmware.com (10.113.208.156) with Microsoft SMTP Server id 15.0.1156.6; Mon, 18 May 2020 11:26:32 -0700 Received: from localhost (unknown [10.200.192.41]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 8500FB2C85; Mon, 18 May 2020 14:26:33 -0400 (EDT) Date: Mon, 18 May 2020 11:26:33 -0700 From: Matt Helsley To: Josh Poimboeuf CC: Julien Thierry , , Peter Zijlstra , Miroslav Benes , Steven Rostedt Subject: Re: [RFC][PATCH 4/5] objtool: Enable compilation of objtool for all architectures Message-ID: <20200518182633.GL9040@rlwimi.vmware.com> Mail-Followup-To: Matt Helsley , Josh Poimboeuf , Julien Thierry , linux-kernel@vger.kernel.org, Peter Zijlstra , Miroslav Benes , Steven Rostedt References: <9f709ea2ae66cc03b3ff3329baa8f670ccd0e368.1588888003.git.mhelsley@vmware.com> <20200513155948.GI9040@rlwimi.vmware.com> <20200515205135.5pknexlld53oicu5@treble> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20200515205135.5pknexlld53oicu5@treble> Received-SPF: None (EX13-EDG-OU-002.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 Fri, May 15, 2020 at 03:51:35PM -0500, Josh Poimboeuf wrote: > On Wed, May 13, 2020 at 05:55:31PM +0100, Julien Thierry wrote: > > > > Since the stuff under arch/missing is only weak symbols to make up for > > > > missing subcmd implementations, can we put everything in a file > > > > subcmd_defaults.c (name up for debate!) that would be always be compiled an > > > > linked. And some SUBCMD_XXX is set to "y", the corresponding object file > > > > gets compiled and overrides the weak symbols from subcmd_defaults.c . > > > > > > Hmm, I like keeping them separated along similar lines to the other > > > code because it makes it easier to see the intended correspondence and > > > likely will keep the files more readable / smaller. I could > > > just move them out of arch/missing and into missing_check.c and so forth. > > > > > > What do you think of that? > > > > > > > I do prefer that to the introduction of an arch/missing. > > > > Still, I'm not sure I see much benefit in splitting those small > > implementations in separate files, but it's not a problem either. This seems > > more a matter of taste rather than one approach working better than the > > other. So it's more up to what the maintainer prefer! :) > > For now I'd prefer getting rid of the 'missing' arch and just having a > single top-level weak.c which has all the weak functions in it. Keeps > the clutter down :-) > > Down the road, if the number of weak functions got out of hand then we > could look at splitting them up into multiple files. OK, I'll merge them all into weak.c Thanks! Cheers, -Matt Helsley